Skip to content

Commit

Permalink
v4.0.660 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
content-controller-jenkins committed Nov 6, 2024
0 parents commit 2b0a67c
Show file tree
Hide file tree
Showing 291 changed files with 18,099 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is a basic workflow to help you get started with Actions

name: CI

permissions:
contents: write
pull-requests: write
37 changes: 37 additions & 0 deletions .github/workflows/notify-mh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# MH relies on its own version of the playbooks, located in cc-deployment-private.
# Despite this, MH still wants to be informed of any changes that occur in this
# repo incase it is relevant to their hosting needs. For example, MH will probably
# need to port over changes made in roles/mysql-config/**, but they don't need
# changes in roles/mysql-local/**.
name: Inform MH About -public Changes
on:
pull_request_target:
types: [closed]
branches:
- 'main'
paths:
- 'roles/tomcat/**'
- 'roles/cc-scorm-engine/**'
- 'roles/common/**'
- 'roles/content-controller/**'
- 'roles/mnt/**'
- 'roles/mysql-config/**'
- 'roles/tomcat/**'
- 'roles/java/**'
- 'roles/saml/**'
- 'roles/ssl/**'
- 'build_ami.yml'
- 'env.yml'

jobs:
notify-slack:
if: github.event.pull_request.merged == true && !startsWith(github.head_ref, 'main')
runs-on: self-hosted
steps:
- name: Send Slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: rustici-ops
SLACK_USERNAME: cc-deployment-public
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 }}'
74 changes: 74 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# cc Specific config files
group_vars/content_controller.yml
group_vars/engine_java.yml
group_vars/env.yml
group_vars/s3.yml
group_vars/aws.yml
group_vars/cloudfront.yml
group_vars/aws.yml
group_vars/keypair.yml
group_vars/test_hosts.yml
roles/users
roles/ssl/files/*
roles/content-controller/files/*
roles/cloudfront/files/*
roles/logstash-filebeat
roles/dripstat
roles/site24x7
roles/scorm-engine-2016
roles/apache-engine-2016
roles/ssl/files
roles/minio
host_vars/*.scorm.com*.yml
host_vars/*.yml
roles/aws-s3/files/*.json
*.retry
engine.yml
run-multi-os-test.yml
cleanup-multi-os-test.yml
.idea/
build_ami_engine2016.yml
roles/consul
roles/doc
roles/mocha-api
roles/newrelic-infrastructure
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

.vagrant/
Vagrantfile
cc-dev.yml
create-test-stack.yml
destroy-test-stack.yml
env-dev.yml
build-pita-worker-ami.yml
roles/qa-dev

# Files generated by Hugo during the build
doc/resources/_gen
doc/public
additional_doc/public
additional_doc/resources
Empty file added .gitmodules
Empty file.
5 changes: 5 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Rustici Content Controller

## Ansible Deployment Playbooks

Copyright 2018 Rustici Software, LLC. All Rights Reserved.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
![RusticiContentControllerLogo](img/Rustici_ContentController.png)

[Please refer to the official deployment documentation available here.](https://docs.contentcontroller.com/)

39 changes: 39 additions & 0 deletions Vagrant-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
![RusticiContentControllerLogo](img/Rustici_ContentController.png)

## Vagrant

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.

[To install Vagrant, head to https://www.vagrantup.com/downloads.html](https://www.vagrantup.com/downloads.html)

After installing Vagrant, you'll need to ensure that you have the `hostmanager` plugin installed:

vagrant plugin install vagrant-hostmanager

There are two VMs enumerated in this Vagrantfile, each of which responds to different DNS names:

_cc.example.com_
cc # Runs the cc environment without s3 support

_ccs3.example.com_
ccs3 # Runs the cc environment WITH s3 support

Most of the time, you'll prolly want to use "cc".

To use Parallels, do:

ln -s Vagrantfile.parallels Vagrantfile

vagrant plugin install vagrant-parallels

vagrant up # Launches both S3-enabled and local storage VMs (you'll need 8GB free to make this go.)

vagrant up cc # Runs the cc environment without s3 support

vagrant up ccs3 # Runs the cc environment WITH s3 support

To ssh to your box, you need to specify a host. Hosts are defined in the Vagrantfile

vagrant ssh cc # ssh to the box with local storage

vagrant ssh ccs3 # ssh to the box with S3 Storage
190 changes: 190 additions & 0 deletions Vagrantfile.parallels
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.

Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true

config.vm.define "cc" do |cc|

# Every Vagrant development environment requires a box. You can search for
# boxes at https://app.vagrantup.com/boxes/search.
cc.vm.box = "ilker/ubuntu2004"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# cc.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# cc.vm.network "forwarded_port", guest: 80, host: 8080

cc.vm.hostname = "local-dev"
cc.vm.network "private_network", ip: "192.168.57.2"
cc.vm.network "private_network", type: "dhcp"
cc.hostmanager.aliases = %w(cc.example.com, contentportal.example.com)

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# cc.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# cc.vm.synced_folder "deploy", "/deploy"


#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"

cc.vm.provider "parallels" do |pr|
pr.cpus = "2"
# Customize the amount of memory on the VM:
pr.memory = "4096"
end

cc.vm.provision :ansible do |ansible|
ansible.playbook = "env-dev.yml"
ansible.verbose = "v"
ansible.extra_vars = "@host_vars/cc.example.com.yml"
ansible.raw_arguments = "-e cc_version=4.0"
end

end

config.vm.define "cc-1-2" do |cc|

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
cc.vm.box = "ilker/ubuntu2004"

cc.vm.hostname = "local-dev"
cc.vm.network "private_network", ip: "192.168.88.23"
cc.vm.network "private_network", type: "dhcp"
cc.hostmanager.aliases = %w(cc-1-2.example.com)

cc.vm.provider "parallels" do |pr|
pr.cpus = "2"
# Customize the amount of memory on the VM:
pr.memory = "4096"
end

cc.vm.provision :ansible do |ansible|
ansible.playbook = "env.yml"
ansible.verbose = "v"
ansible.extra_vars = { ServerName: "cc-1-2.example.com", S3FileStorageEnabled: false, use_ssl: true, build_name: "ContentController-1.2.317" }
ansible.raw_arguments = "-e cc_version=4.0"
end

end

config.vm.define "cc-cent" do |cc|

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
cc.vm.box = "parallels/centos-7.2"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# cc.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# cc.vm.network "forwarded_port", guest: 80, host: 8080

cc.vm.hostname = "cc-cent"
cc.vm.network "private_network", type: "dhcp"
cc.hostmanager.aliases = %w(cc-cent.rusticisoftware.com)

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# cc.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# cc.vm.synced_folder "deploy", "/deploy"


#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"

cc.vm.provider "parallels" do |pr|
pr.cpus = "2"
# Customize the amount of memory on the VM:
pr.memory = "4096"
end

cc.vm.provision :ansible do |ansible|
ansible.playbook = "cc-cent.yml"
ansible.verbose = "v"
end

end

config.vm.define "se" do |cc|

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
cc.vm.box = "ilker/ubuntu2004"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# cc.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# cc.vm.network "forwarded_port", guest: 80, host: 8080

cc.vm.hostname = "local-dev"
cc.vm.network "private_network", type: "dhcp"
cc.hostmanager.aliases = %w(dev.engine.scorm.com)

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# cc.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# cc.vm.synced_folder "deploy", "/deploy"


#cc.vm.provision :shell, path: "bootstrap.sh", run: "once"

cc.vm.provider "parallels" do |pr|
pr.cpus = "2"
# Customize the amount of memory on the VM:
pr.memory = "2048"
end

cc.vm.provision :ansible do |ansible|
ansible.playbook = "engine.yml"
ansible.verbose = "v"
ansible.extra_vars = "@host_vars/dev.engine.scorm.com.yml"
end

end

end
Loading

0 comments on commit 2b0a67c

Please sign in to comment.