Skip to content

Commit 6e9e0e1

Browse files
v4.1.327 Release
0 parents  commit 6e9e0e1

File tree

314 files changed

+19249
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+19249
-0
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write

.github/workflows/notify-mh.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# MH relies on its own version of the playbooks, located in cc-deployment-private.
2+
# Despite this, MH still wants to be informed of any changes that occur in this
3+
# repo incase it is relevant to their hosting needs. For example, MH will probably
4+
# need to port over changes made in roles/mysql-config/**, but they don't need
5+
# changes in roles/mysql-local/**.
6+
name: Inform MH About -public Changes
7+
on:
8+
pull_request_target:
9+
types: [closed]
10+
branches:
11+
- 'main'
12+
paths:
13+
- 'roles/tomcat/**'
14+
- 'roles/cc-scorm-engine/**'
15+
- 'roles/common/**'
16+
- 'roles/content-controller/**'
17+
- 'roles/mnt/**'
18+
- 'roles/mysql-config/**'
19+
- 'roles/tomcat/**'
20+
- 'roles/java/**'
21+
- 'roles/saml/**'
22+
- 'roles/ssl/**'
23+
- 'build_ami.yml'
24+
- 'env.yml'
25+
26+
jobs:
27+
notify-slack:
28+
if: github.event.pull_request.merged == true && !startsWith(github.head_ref, 'main')
29+
runs-on: self-hosted
30+
steps:
31+
- name: Send Slack notification
32+
uses: rtCamp/action-slack-notify@v2
33+
env:
34+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
35+
SLACK_CHANNEL: rustici-ops
36+
SLACK_USERNAME: cc-deployment-public
37+
SLACK_MESSAGE: ':eyes: Someone pushed changes to cc-deployment-public that may be relevant to cc-deployment-private :eyes: ${{ github.event.pull_request._links.html.href }}'

.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# cc Specific config files
2+
group_vars/content_controller.yml
3+
group_vars/engine_java.yml
4+
group_vars/env.yml
5+
group_vars/s3.yml
6+
group_vars/aws.yml
7+
group_vars/cloudfront.yml
8+
group_vars/aws.yml
9+
group_vars/keypair.yml
10+
group_vars/test_hosts.yml
11+
roles/users
12+
roles/ssl/files/*
13+
roles/content-controller/files/*
14+
roles/cloudfront/files/*
15+
roles/logstash-filebeat
16+
roles/dripstat
17+
roles/site24x7
18+
roles/scorm-engine-2016
19+
roles/apache-engine-2016
20+
roles/ssl/files
21+
roles/minio
22+
host_vars/*.scorm.com*.yml
23+
host_vars/*.yml
24+
roles/aws-s3/files/*.json
25+
*.retry
26+
engine.yml
27+
run-multi-os-test.yml
28+
cleanup-multi-os-test.yml
29+
.idea/
30+
build_ami_engine2016.yml
31+
roles/consul
32+
roles/doc
33+
roles/mocha-api
34+
roles/newrelic-infrastructure
35+
.DS_Store
36+
.AppleDouble
37+
.LSOverride
38+
39+
# Icon must end with two \r
40+
Icon
41+
42+
43+
# Thumbnails
44+
._*
45+
46+
# Files that might appear in the root of a volume
47+
.DocumentRevisions-V100
48+
.fseventsd
49+
.Spotlight-V100
50+
.TemporaryItems
51+
.Trashes
52+
.VolumeIcon.icns
53+
54+
# Directories potentially created on remote AFP share
55+
.AppleDB
56+
.AppleDesktop
57+
Network Trash Folder
58+
Temporary Items
59+
.apdisk
60+
61+
.vagrant/
62+
Vagrantfile
63+
cc-dev.yml
64+
create-test-stack.yml
65+
destroy-test-stack.yml
66+
env-dev.yml
67+
build-pita-worker-ami.yml
68+
roles/qa-dev
69+
70+
# Files generated by Hugo during the build
71+
doc/resources/_gen
72+
doc/public
73+
additional_doc/public
74+
additional_doc/resources

.gitmodules

Whitespace-only changes.

LICENSE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Rustici Content Controller
2+
3+
## Ansible Deployment Playbooks
4+
5+
Copyright 2018 Rustici Software, LLC. All Rights Reserved.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
![RusticiContentControllerLogo](img/Rustici_ContentController.png)
2+
3+
[Please refer to the official deployment documentation available here.](https://docs.contentcontroller.com/)
4+

Vagrant-README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
![RusticiContentControllerLogo](img/Rustici_ContentController.png)
2+
3+
## Vagrant
4+
5+
Vagrant can be useful for running test environments. We provide preconfigured Vagrantfiles for Parallels. You'll need Vagrant 1.8+ for Parallels to behave on El Capitan.
6+
7+
[To install Vagrant, head to https://www.vagrantup.com/downloads.html](https://www.vagrantup.com/downloads.html)
8+
9+
After installing Vagrant, you'll need to ensure that you have the `hostmanager` plugin installed:
10+
11+
vagrant plugin install vagrant-hostmanager
12+
13+
There are two VMs enumerated in this Vagrantfile, each of which responds to different DNS names:
14+
15+
_cc.example.com_
16+
cc # Runs the cc environment without s3 support
17+
18+
_ccs3.example.com_
19+
ccs3 # Runs the cc environment WITH s3 support
20+
21+
Most of the time, you'll prolly want to use "cc".
22+
23+
To use Parallels, do:
24+
25+
ln -s Vagrantfile.parallels Vagrantfile
26+
27+
vagrant plugin install vagrant-parallels
28+
29+
vagrant up # Launches both S3-enabled and local storage VMs (you'll need 8GB free to make this go.)
30+
31+
vagrant up cc # Runs the cc environment without s3 support
32+
33+
vagrant up ccs3 # Runs the cc environment WITH s3 support
34+
35+
To ssh to your box, you need to specify a host. Hosts are defined in the Vagrantfile
36+
37+
vagrant ssh cc # ssh to the box with local storage
38+
39+
vagrant ssh ccs3 # ssh to the box with S3 Storage

Vagrantfile.parallels

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
5+
# configures the configuration version (we support older styles for
6+
# backwards compatibility). Please don't change it unless you know what
7+
# you're doing.
8+
9+
Vagrant.configure(2) do |config|
10+
# The most common configuration options are documented and commented below.
11+
# For a complete reference, please see the online documentation at
12+
# https://docs.vagrantup.com.
13+
config.hostmanager.enabled = true
14+
config.hostmanager.manage_host = true
15+
config.hostmanager.manage_guest = true
16+
config.hostmanager.ignore_private_ip = false
17+
config.hostmanager.include_offline = true
18+
19+
config.vm.define "cc" do |cc|
20+
21+
# Every Vagrant development environment requires a box. You can search for
22+
# boxes at https://app.vagrantup.com/boxes/search.
23+
cc.vm.box = "ilker/ubuntu2004"
24+
25+
# Disable automatic box update checking. If you disable this, then
26+
# boxes will only be checked for updates when the user runs
27+
# `vagrant box outdated`. This is not recommended.
28+
# cc.vm.box_check_update = false
29+
30+
# Create a forwarded port mapping which allows access to a specific port
31+
# within the machine from a port on the host machine. In the example below,
32+
# accessing "localhost:8080" will access port 80 on the guest machine.
33+
# cc.vm.network "forwarded_port", guest: 80, host: 8080
34+
35+
cc.vm.hostname = "local-dev"
36+
cc.vm.network "private_network", ip: "192.168.57.2"
37+
cc.vm.network "private_network", type: "dhcp"
38+
cc.hostmanager.aliases = %w(cc.example.com, contentportal.example.com)
39+
40+
# Create a public network, which generally matched to bridged network.
41+
# Bridged networks make the machine appear as another physical device on
42+
# your network.
43+
# cc.vm.network "public_network"
44+
45+
# Share an additional folder to the guest VM. The first argument is
46+
# the path on the host to the actual folder. The second argument is
47+
# the path on the guest to mount the folder. And the optional third
48+
# argument is a set of non-required options.
49+
# cc.vm.synced_folder "deploy", "/deploy"
50+
51+
52+
#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"
53+
54+
cc.vm.provider "parallels" do |pr|
55+
pr.cpus = "2"
56+
# Customize the amount of memory on the VM:
57+
pr.memory = "4096"
58+
end
59+
60+
cc.vm.provision :ansible do |ansible|
61+
ansible.playbook = "env-dev.yml"
62+
ansible.verbose = "v"
63+
ansible.extra_vars = "@host_vars/cc.example.com.yml"
64+
ansible.raw_arguments = "-e cc_version=4.0"
65+
end
66+
67+
end
68+
69+
config.vm.define "cc-1-2" do |cc|
70+
71+
# Every Vagrant development environment requires a box. You can search for
72+
# boxes at https://atlas.hashicorp.com/search.
73+
cc.vm.box = "ilker/ubuntu2004"
74+
75+
cc.vm.hostname = "local-dev"
76+
cc.vm.network "private_network", ip: "192.168.88.23"
77+
cc.vm.network "private_network", type: "dhcp"
78+
cc.hostmanager.aliases = %w(cc-1-2.example.com)
79+
80+
cc.vm.provider "parallels" do |pr|
81+
pr.cpus = "2"
82+
# Customize the amount of memory on the VM:
83+
pr.memory = "4096"
84+
end
85+
86+
cc.vm.provision :ansible do |ansible|
87+
ansible.playbook = "env.yml"
88+
ansible.verbose = "v"
89+
ansible.extra_vars = { ServerName: "cc-1-2.example.com", S3FileStorageEnabled: false, use_ssl: true, build_name: "ContentController-1.2.317" }
90+
ansible.raw_arguments = "-e cc_version=4.0"
91+
end
92+
93+
end
94+
95+
config.vm.define "cc-cent" do |cc|
96+
97+
# Every Vagrant development environment requires a box. You can search for
98+
# boxes at https://atlas.hashicorp.com/search.
99+
cc.vm.box = "parallels/centos-7.2"
100+
101+
# Disable automatic box update checking. If you disable this, then
102+
# boxes will only be checked for updates when the user runs
103+
# `vagrant box outdated`. This is not recommended.
104+
# cc.vm.box_check_update = false
105+
106+
# Create a forwarded port mapping which allows access to a specific port
107+
# within the machine from a port on the host machine. In the example below,
108+
# accessing "localhost:8080" will access port 80 on the guest machine.
109+
# cc.vm.network "forwarded_port", guest: 80, host: 8080
110+
111+
cc.vm.hostname = "cc-cent"
112+
cc.vm.network "private_network", type: "dhcp"
113+
cc.hostmanager.aliases = %w(cc-cent.rusticisoftware.com)
114+
115+
# Create a public network, which generally matched to bridged network.
116+
# Bridged networks make the machine appear as another physical device on
117+
# your network.
118+
# cc.vm.network "public_network"
119+
120+
# Share an additional folder to the guest VM. The first argument is
121+
# the path on the host to the actual folder. The second argument is
122+
# the path on the guest to mount the folder. And the optional third
123+
# argument is a set of non-required options.
124+
# cc.vm.synced_folder "deploy", "/deploy"
125+
126+
127+
#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"
128+
129+
cc.vm.provider "parallels" do |pr|
130+
pr.cpus = "2"
131+
# Customize the amount of memory on the VM:
132+
pr.memory = "4096"
133+
end
134+
135+
cc.vm.provision :ansible do |ansible|
136+
ansible.playbook = "cc-cent.yml"
137+
ansible.verbose = "v"
138+
end
139+
140+
end
141+
142+
config.vm.define "se" do |cc|
143+
144+
# Every Vagrant development environment requires a box. You can search for
145+
# boxes at https://atlas.hashicorp.com/search.
146+
cc.vm.box = "ilker/ubuntu2004"
147+
148+
# Disable automatic box update checking. If you disable this, then
149+
# boxes will only be checked for updates when the user runs
150+
# `vagrant box outdated`. This is not recommended.
151+
# cc.vm.box_check_update = false
152+
153+
# Create a forwarded port mapping which allows access to a specific port
154+
# within the machine from a port on the host machine. In the example below,
155+
# accessing "localhost:8080" will access port 80 on the guest machine.
156+
# cc.vm.network "forwarded_port", guest: 80, host: 8080
157+
158+
cc.vm.hostname = "local-dev"
159+
cc.vm.network "private_network", type: "dhcp"
160+
cc.hostmanager.aliases = %w(dev.engine.scorm.com)
161+
162+
# Create a public network, which generally matched to bridged network.
163+
# Bridged networks make the machine appear as another physical device on
164+
# your network.
165+
# cc.vm.network "public_network"
166+
167+
# Share an additional folder to the guest VM. The first argument is
168+
# the path on the host to the actual folder. The second argument is
169+
# the path on the guest to mount the folder. And the optional third
170+
# argument is a set of non-required options.
171+
# cc.vm.synced_folder "deploy", "/deploy"
172+
173+
174+
#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"
175+
176+
cc.vm.provider "parallels" do |pr|
177+
pr.cpus = "2"
178+
# Customize the amount of memory on the VM:
179+
pr.memory = "2048"
180+
end
181+
182+
cc.vm.provision :ansible do |ansible|
183+
ansible.playbook = "engine.yml"
184+
ansible.verbose = "v"
185+
ansible.extra_vars = "@host_vars/dev.engine.scorm.com.yml"
186+
end
187+
188+
end
189+
190+
end

0 commit comments

Comments
 (0)