-
-
Save BrettSwaim/dc0cc62a5c7ffaa4e66d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ cat /etc/salt/cloud.profiles | |
base_ec2: | |
# Set Salt master | |
provider: ec2 | |
image: ami-9eaa1cf6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ cat /etc/salt/cloud.providers | |
ec2: | |
log_level: all | |
# The EC2 API authentication id | |
id: MYID | |
# The EC2 API authentication key | |
key: MYKEY | |
# The ssh keyname to use | |
keyname: Bretts_Key | |
# The location of the private key which corresponds to the keyname | |
private_key: /Users/bswaim/.ssh/id_rsa | |
# SSH Gateways can be used with this provider. Gateways can be used | |
# when a salt-master is not on the same private network as the instance | |
# that is being deployed. | |
# Defaults to None | |
# Required | |
ssh_gateway: Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com | |
# Defaults to port 22 | |
# Optional | |
ssh_gateway_port: 5022 | |
# Defaults to root | |
# Optional | |
ssh_gateway_username: ubuntu | |
# One authentication method is required. If both | |
# are specified, Private key wins. | |
# Private key defaults to None | |
ssh_gateway_private_key: /Users/bswaim/.ssh/id_rsa | |
provider: ec2 | |
size: t2.micro | |
#del_root_vol_on_destroy: True | |
subnetid: subnet-0dbc2237 | |
securitygroupid: | |
- sg-b7b054d3 | |
#script: bootstrap-salt | |
#script_args: -L -U -A 172.16.5.200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DescribeTagsResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-01/"> | |
<requestId>bac42fb9-49bb-4bf6-a284-729fe309f664</requestId> | |
<tagSet> | |
<item> | |
<resourceId>i-059b58ec</resourceId> | |
<resourceType>instance</resourceType> | |
<key>Name</key> | |
<value>minion5</value> | |
</item> | |
</tagSet> | |
</DescribeTagsResponse> | |
[DEBUG ] Setting the tags returned: [{'resourceType': 'instance', 'resourceId': 'i-059b58ec', 'value': 'minion5', 'key': 'Name'}] | |
[INFO ] Created node minion5 | |
[INFO ] Salt node data. Private_ip: 172.16.7.69 | |
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2014-11-23T20:25:34.315984', 'ip_address': '172.16.7.69', 'event': 'waiting for ssh'} | |
[DEBUG ] Attempting connection to host 172.16.7.69 on port 22 via gateway Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com on port 5022 | |
[DEBUG ] Gateway Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com on port 5022 is reachable. | |
[DEBUG ] SSH command: "ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oKbdInteractiveAuthentication=no -i /Users/bswaim/.ssh/id_rsa ubuntu@Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com -p 5022 'nc -z -w5 -q0 172.16.7.69 22'" | |
[DEBUG ] Child Forked! PID: 1725 STDOUT_FD: 7 STDERR_FD: 9 | |
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oKbdInteractiveAuthentication=no -i /Users/bswaim/.ssh/id_rsa ubuntu@Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com -p 5022 date | |
[DEBUG ] Warning: Permanently added '[management-ssh-elb-598707540.us-east-1.elb.amazonaws.com]:5022,[54.210.160.190]:5022' (RSA) to the list of known hosts. | |
[DEBUG ] Mon Nov 24 04:25:47 UTC 2014 | |
[DEBUG ] Child Forked! PID: 1726 STDOUT_FD: 7 STDERR_FD: 9 | |
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oKbdInteractiveAuthentication=no -i /Users/bswaim/.ssh/id_rsa ubuntu@Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com -p 5022 'nc -z -w5 -q0 172.16.7.69 22' | |
[DEBUG ] Warning: Permanently added '[management-ssh-elb-598707540.us-east-1.elb.amazonaws.com]:5022,[54.84.125.235]:5022' (RSA) to the list of known hosts. | |
Error: There was a profile error: Command "ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oKbdInteractiveAuthentication=no -i /Users/bswaim/.ssh/id_rsa ubuntu@Management-SSH-ELB-598707540.us-east-1.elb.amazonaws.com -p 5022 'nc -z -w5 -q0 172.16.7.69 22'" failed. Exit code: 1 | |
(20:25:48) ○ [bswaim@Amy-2.local] /etc | |
→ salt-cloud --versions | |
Salt: 2014.7.0 | |
Python: 2.7.6 (default, Apr 8 2014, 15:00:35) | |
Jinja2: 2.7.3 | |
M2Crypto: 0.22 | |
msgpack-python: 0.4.2 | |
msgpack-pure: Not Installed | |
pycrypto: 2.6.1 | |
libnacl: Not Installed | |
PyYAML: 3.11 | |
ioflo: Not Installed | |
PyZMQ: 14.4.1 | |
RAET: Not Installed | |
ZMQ: 4.0.5 | |
Mako: Not Installed | |
Apache Libcloud: Not Installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment