Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
rename scripts/bootstrap.sh to scripts/moj-bootstrap.sh
Browse files Browse the repository at this point in the history
added the scripts directory to package_data in setup.py

modified fab_tasks.py to use new moj-bootstrap.sh script and to use put instead of wget

moved the scripts dir under bootstrap_cfn + changed the moj-bootstrap.sh and setup.py accordingly

renamed moj-bootstrap.sh, added script to package_data, moved scripts directory, using put instead of wget
  • Loading branch information
Benedetto Lo Giudice committed Apr 20, 2015
1 parent e829a86 commit 5a1b10d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions bootstrap_cfn/fab_tasks.py 100644 → 100755
Expand Up @@ -212,7 +212,12 @@ def install_minions():
ec2.set_instance_tags(to_install, {'SaltMasterPrvIP': master_prv_ip})
for inst_ip in public_ips:
env.host_string = 'ubuntu@%s' % inst_ip
sudo('wget https://raw.githubusercontent.com/ministryofjustice/bootstrap-cfn/master/scripts/bootstrap-salt.sh -O /tmp/moj-bootstrap.sh')
d = os.path.dirname(__file__)
mojscript = d + "/scripts/moj-bootstrap.sh"
if not os.path.isfile(mojscript):
print "ERROR: Cannot find %s" % mojscript
sys.exit(1)
put(mojscript, '/tmp', use_sudo=True)
sudo('chmod 755 /tmp/moj-bootstrap.sh')
sudo('/tmp/moj-bootstrap.sh')
sudo(
Expand Down Expand Up @@ -246,7 +251,12 @@ def install_master():
stack_public_ips.remove(master_public_ip)
env.host_string = 'ubuntu@%s' % master_public_ip
sha = '6080a18e6c7c2d49335978fa69fa63645b45bc2a'
sudo('wget https://raw.githubusercontent.com/ministryofjustice/bootstrap-cfn/master/scripts/bootstrap-salt.sh -O /tmp/moj-bootstrap.sh')
d = os.path.dirname(__file__)
mojscript = d + "/scripts/moj-bootstrap.sh"
if not os.path.isfile(mojscript):
print "ERROR: Cannot find %s" % mojscript
sys.exit(1)
put(mojscript, '/tmp')
sudo('chmod 755 /tmp/moj-bootstrap.sh')
sudo('/tmp/moj-bootstrap.sh')
sudo(
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py 100644 → 100755
Expand Up @@ -35,7 +35,7 @@
description='MOJDS cloudformation bootstrap tool',
long_description=__doc__,
packages=find_packages(),
package_data={'bootstrap_cfn': ['stacks/*']},
package_data={'bootstrap_cfn': ['stacks/*', 'scripts/*']},
zip_safe=False,
platforms='any',
test_suite='tests',
Expand Down

0 comments on commit 5a1b10d

Please sign in to comment.