Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
workstation-1 committed Apr 13, 2017
1 parent 1578829 commit 4d21b76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions centos_user_data
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
echo '172.31.54.11 automate.automate-demo.com automate' >> /etc/hosts
echo '172.31.54.10 chef.automate-demo.com chef' >> /etc/hosts
2 changes: 1 addition & 1 deletion lb.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
knife ec2 server create --fqdn lb -g sg-de9d44a5 --subnet subnet-cef71695 -f t2.micro -S nweddle_sa --image ami-05cf2265 --associate-public-ip -N lb -r 'role[lb]' -i ~/.ssh/nweddle_sa.pem --ssh-user centos
knife ec2 server create --fqdn lb -g sg-de9d44a5 --subnet subnet-cef71695 -f t2.micro -S nweddle_sa --image ami-05cf2265 --associate-public-ip -N lb -r 'role[lb]' -i ~/.ssh/nweddle_sa.pem --ssh-user centos --user-data .\centos_user_data
4 changes: 2 additions & 2 deletions win_user_data
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ sc.exe config winrm start=auto
net start winrm

# Add the chef server's hostname to hosts file
$chefserverip = "CHEF_SERVER_IP"
$chefserverip = "172.31.54.10"
$chefserverhostname = "chef.automate-demo.com"
$automateserverip = "AUTOMATE_SERVER_IP"
$automateserverip = "172.31.54.11"
$automateserverhostname = "automate.automate-demo.com"
$filename = "C:\Windows\System32\drivers\etc\hosts"
$automateserverip + "`t`t" + $automateserverhostname | Out-File -encoding ASCII -append $filename
Expand Down
2 changes: 1 addition & 1 deletion windows.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
knife ec2 server create --fqdn WinDyn1 -g sg-401e0e25 --subnet subnet-cef71695 -f m3.large -S nweddle_sa --image ami-94e26af4 --associate-public-ip --user-data knife_user_data -N WinDyn1 -r 'role[webserver-win]' -i ~/.ssh/nweddle_sa.pem --winrm-user Administrator --winrm-password Ch4ng3m3 --winrm-transport plaintext
knife ec2 server create --fqdn WinDyn1 -g sg-03865f78 --subnet subnet-cef71695 -f m3.large -S nweddle_sa --image ami-94e26af4 --associate-public-ip --user-data win_user_data -N WinDyn1 -r 'role[webserver-win]' -i ~/.ssh/nweddle_sa.pem --winrm-user Administrator --winrm-password Ch4ng3m3 --winrm-transport plaintext

0 comments on commit 4d21b76

Please sign in to comment.