Skip to content

Commit

Permalink
Merge pull request #273 from calcium-machine/develop-catapult
Browse files Browse the repository at this point in the history
Fixes #213: Introduce DigitalOcean private networking interfaces for …
  • Loading branch information
seth-reeser committed Sep 15, 2015
2 parents f0efe39 + df68dec commit d7a2e50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 1.6.1
version: 1.7.0
7 changes: 5 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ Vagrant.configure("2") do |config|
config.hostmanager.aliases = redhathostsfile
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/catapult", type: "nfs"
# this takes place of git clones
# sym link the git clones for local access
config.vm.synced_folder "repositories", "/var/www/repositories", type: "nfs"
config.vm.provision "shell", path: "provisioners/redhat/provision.sh", args: ["dev","#{repo}","#{configuration_user["settings"]["gpg_key"]}","apache","#{configuration_user["settings"]["software_validation"]}"]
end
Expand All @@ -1412,7 +1412,7 @@ Vagrant.configure("2") do |config|
end
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/catapult", type: "nfs"
# this takes place of git clones
# sym link the git clones for local access
config.vm.synced_folder "repositories", "/var/www/repositories", type: "nfs"
config.vm.provision :hostmanager
config.vm.provision "shell", path: "provisioners/redhat/provision.sh", args: ["dev","#{repo}","#{configuration_user["settings"]["gpg_key"]}","mysql","#{configuration_user["settings"]["software_validation"]}"]
Expand Down Expand Up @@ -1444,6 +1444,7 @@ Vagrant.configure("2") do |config|
provider.region = "nyc3"
provider.size = "#{configuration["environments"]["test"]["servers"]["redhat_mysql"]["slug"]}"
provider.ipv6 = true
provider.private_networking = true
provider.backups_enabled = true
end
config.vm.synced_folder ".", "/vagrant", disabled: true
Expand Down Expand Up @@ -1476,6 +1477,7 @@ Vagrant.configure("2") do |config|
provider.region = "nyc3"
provider.size = "#{configuration["environments"]["qc"]["servers"]["redhat_mysql"]["slug"]}"
provider.ipv6 = true
provider.private_networking = true
provider.backups_enabled = true
end
config.vm.synced_folder ".", "/vagrant", disabled: true
Expand Down Expand Up @@ -1508,6 +1510,7 @@ Vagrant.configure("2") do |config|
provider.region = "nyc3"
provider.size = "#{configuration["environments"]["production"]["servers"]["redhat_mysql"]["slug"]}"
provider.ipv6 = true
provider.private_networking = true
provider.backups_enabled = true
end
config.vm.synced_folder ".", "/vagrant", disabled: true
Expand Down
2 changes: 1 addition & 1 deletion provisioners/redhat/modules/iptables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sudo iptables\
--jump ACCEPT
# allow for outbound mail
sudo iptables\
-append OUTPUT\
--append OUTPUT\
--protocol tcp\
--dport 25\
--jump ACCEPT
Expand Down
2 changes: 1 addition & 1 deletion provisioners/redhat/mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ while IFS='' read -r -d '' key; do
cd "/var/www/repositories/apache/${domain}" && git checkout $(echo "${configuration}" | shyaml get-value environments.${1}.branch) 2>&1 | sed "s/^/\t/"
else
if [ -z "${software_dbexist}" ]; then
echo -e "\t* workflow is set to ${software_workflow} and this is the ${1} environment, however this is a new website and the database does not exist, performing a database restore"
echo -e "\t* workflow is set to ${software_workflow} and this is the ${1} environment, however, the database does not exist. performing a database restore"
else
echo -e "\t* workflow is set to ${software_workflow} and this is the ${1} environment, performing a database restore"
fi
Expand Down

0 comments on commit d7a2e50

Please sign in to comment.