Skip to content

Instantly share code, notes, and snippets.

@BrianHicks
Last active December 14, 2015 00:29
Show Gist options
  • Save BrianHicks/4999260 to your computer and use it in GitHub Desktop.
Save BrianHicks/4999260 to your computer and use it in GitHub Desktop.
Starting a server on salt-cloud (command was `salt-cloud -l all -p manage-staging manage-staging 2> salt-cloud.log`)
manage-staging:
provider: aws
image: ami-43e2772a
size: m1.small
script: bootstrap-salt-minion
minion:
grains:
staging: True
database: True
media: True
[INFO ] Loaded configuration file: /etc/salt/cloud
[INFO ] salt-cloud starting
[DEBUG ] loading cloud in ['/var/cache/salt/master/extmods/clouds', '/usr/lib/python2.7/dist-packages/saltcloud/clouds']
[DEBUG ] Skipping /var/cache/salt/master/extmods/clouds, it is not a directory
[DEBUG ] Loading AWS cloud module
[TRACE ] Added aws.MultiStepDeployment to cloud
[TRACE ] Added aws.Provider to cloud
[TRACE ] Added aws.SSHKeyDeployment to cloud
[TRACE ] Added aws.ScriptDeployment to cloud
[TRACE ] Added aws.avail_images to cloud
[TRACE ] Added aws.avail_locations to cloud
[TRACE ] Added aws.avail_sizes to cloud
[TRACE ] Added aws.create to cloud
[TRACE ] Added aws.create_attach_volumes to cloud
[TRACE ] Added aws.del_tags to cloud
[TRACE ] Added aws.destroy to cloud
[TRACE ] Added aws.disable_term_protect to cloud
[TRACE ] Added aws.enable_term_protect to cloud
[TRACE ] Added aws.get_availability_zone to cloud
[TRACE ] Added aws.get_conn to cloud
[TRACE ] Added aws.get_driver to cloud
[TRACE ] Added aws.get_image to cloud
[TRACE ] Added aws.get_location to cloud
[TRACE ] Added aws.get_node to cloud
[TRACE ] Added aws.get_size to cloud
[TRACE ] Added aws.get_tags to cloud
[TRACE ] Added aws.keyname to cloud
[TRACE ] Added aws.libcloud_version to cloud
[TRACE ] Added aws.list_nodes to cloud
[TRACE ] Added aws.list_nodes_full to cloud
[TRACE ] Added aws.list_nodes_select to cloud
[TRACE ] Added aws.namespaced_function to cloud
[TRACE ] Added aws.node_state to cloud
[TRACE ] Added aws.reboot to cloud
[TRACE ] Added aws.rename to cloud
[TRACE ] Added aws.script to cloud
[TRACE ] Added aws.securitygroup to cloud
[TRACE ] Added aws.set_tags to cloud
[TRACE ] Added aws.ssh_interface to cloud
[TRACE ] Added aws.ssh_pub to cloud
[TRACE ] Added aws.ssh_username to cloud
[TRACE ] Added aws.start to cloud
[TRACE ] Added aws.stop to cloud
[INFO ] Creating Cloud VM manage-staging in us-east-1
[INFO ] Created node manage-staging
[WARNING ] Salt node waiting_for_ip 1
[WARNING ] Salt node waiting_for_ip 2
[WARNING ] Salt node waiting_for_ip 3
[WARNING ] Salt node waiting_for_ip 4
[WARNING ] Salt node waiting_for_ip 5
[WARNING ] Salt node waiting_for_ip 6
[WARNING ] Salt node waiting_for_ip 7
[WARNING ] Salt node waiting_for_ip 8
[WARNING ] Salt node waiting_for_ip 9
[WARNING ] Salt node waiting_for_ip 10
[WARNING ] Salt node waiting_for_ip 11
[WARNING ] Salt node waiting_for_ip 12
[WARNING ] Salt node waiting_for_ip 13
[WARNING ] Salt node waiting_for_ip 14
[WARNING ] Salt node waiting_for_ip 15
[WARNING ] Salt node waiting_for_ip 16
[WARNING ] Salt node waiting_for_ip 17
[WARNING ] Salt node waiting_for_ip 18
[WARNING ] Salt node waiting_for_ip 19
[WARNING ] Salt node waiting_for_ip 20
[WARNING ] Salt node waiting_for_ip 21
[WARNING ] Salt node waiting_for_ip 22
[WARNING ] Salt node waiting_for_ip 23
[WARNING ] Salt node waiting_for_ip 24
[WARNING ] Salt node waiting_for_ip 25
[WARNING ] Salt node waiting_for_ip 26
[WARNING ] Salt node waiting_for_ip 27
[WARNING ] Salt node waiting_for_ip 28
[WARNING ] Salt node waiting_for_ip 29
[WARNING ] Salt node waiting_for_ip 30
[WARNING ] Salt node waiting_for_ip 31
[WARNING ] Salt node waiting_for_ip 32
[WARNING ] Salt node waiting_for_ip 33
[WARNING ] Salt node waiting_for_ip 34
[WARNING ] Salt node waiting_for_ip 35
[INFO ] Salt node data. Public_ip: 50.19.35.186
[DEBUG ] Retrying SSH connection (try 1)
[DEBUG ] Retrying SSH connection (try 2)
[DEBUG ] Retrying SSH connection (try 3)
[DEBUG ] Retrying SSH connection (try 4)
[DEBUG ] Retrying SSH connection (try 5)
[DEBUG ] Using /root/.ssh/cfwebkey.pem as the key_filename
[DEBUG ] Attempting to authenticate as ubuntu (try 1 of 15)
[DEBUG ] Executing command: date
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
[DEBUG ] Deploying 50.19.35.186 at 1361390912.0
[DEBUG ] SSH port 22 on 50.19.35.186 is available
[DEBUG ] Using /root/.ssh/cfwebkey.pem as the key_filename
[DEBUG ] Attempting to authenticate as ubuntu (try 1 of 15)
[DEBUG ] Executing command: date
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
[DEBUG ] Logging into 50.19.35.186:22 as ubuntu
[DEBUG ] Using /root/.ssh/cfwebkey.pem as the key_filename
[DEBUG ] SSH connection to 50.19.35.186 successful
[DEBUG ] Uploading /tmp/minion.pem to 50.19.35.186
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
[DEBUG ] Using sudo to run command
[DEBUG ] Executing command: sudo chmod 600 /tmp/minion.pem
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
Connection to 50.19.35.186 closed.
[DEBUG ] Uploading /tmp/minion.pub to 50.19.35.186
[DEBUG ] Uploading /tmp/minion to 50.19.35.186
[DEBUG ] Using sudo to run command
[DEBUG ] Executing command: sudo chmod +x /tmp/deploy.sh
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
Connection to 50.19.35.186 closed.
[DEBUG ] Using sudo to run command
[DEBUG ] Executing command: sudo rm /tmp/minion.pub
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
Connection to 50.19.35.186 closed.
[DEBUG ] Removed /tmp/minion.pub
[DEBUG ] Using sudo to run command
[DEBUG ] Executing command: sudo rm /tmp/minion.pem
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
Connection to 50.19.35.186 closed.
[DEBUG ] Removed /tmp/minion.pem
[DEBUG ] Using sudo to run command
[DEBUG ] Executing command: sudo rm /tmp/minion
Warning: Permanently added '50.19.35.186' (ECDSA) to the list of known hosts.
Connection to 50.19.35.186 closed.
[DEBUG ] Removed /tmp/minion
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
[INFO ] Salt installed on manage-staging
[INFO ] Created Cloud VM manage-staging with the following values:
[INFO ] private_ips: ['10.140.14.206']
[INFO ] extra: {'status': 'running', 'productcode': [], 'groups': [None], 'tags': {'Name': 'manage-staging'}, 'instanceId': 'i-f4b06687', 'dns_name': 'ec2-50-19-35-186.compute-1.amazonaws.com', 'launchdatetime': '2013-02-20T20:08:45.000Z', 'imageId': 'ami-43e2772a', 'kernelid': 'aki-88aa75e1', 'keyname': 'cfwebkey', 'availability': 'us-east-1c', 'clienttoken': '', 'launchindex': '0', 'ramdiskid': None, 'private_dns': 'ip-10-140-14-206.ec2.internal', 'instancetype': 'm1.small'}
[INFO ] image: None
[INFO ] _uuid: None
[INFO ] driver: <libcloud.compute.drivers.ec2.EC2NodeDriver object at 0x35b3690>
[INFO ] state: 0
[INFO ] public_ips: ['50.19.35.186']
[INFO ] size: None
[INFO ] id: i-f4b06687
[INFO ] name: manage-staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment