@@ -10,113 +10,111 @@ been deprecated in favor of the `ec2` provider. Configuration using the old
10
10
`aws ` provider will still function, but that driver is no longer in active
11
11
development.
12
12
13
- Set up the cloud config at ``/etc/salt/cloud ``:
14
-
15
13
.. code-block :: yaml
16
14
17
- # Note: This example is for /etc/salt/cloud
18
-
19
- providers :
20
- my-ec2-southeast-public-ips :
21
- # Set up the location of the salt master
22
- #
23
- minion :
24
- master : saltmaster.example.com
25
-
26
- # Set up grains information, which will be common for all nodes
27
- # using this provider
28
- grains :
29
- node_type : broker
30
- release : 1.0.1
31
-
32
- # Specify whether to use public or private IP for deploy script.
33
- #
34
- # Valid options are:
35
- # private_ips - The salt-master is also hosted with EC2
36
- # public_ips - The salt-master is hosted outside of EC2
37
- #
38
- ssh_interface : public_ips
39
-
40
- # Set the EC2 access credentials (see below)
41
- #
42
- id : HJGRYCILJLKJYG
43
- key : ' kdjgfsgm;woormgl/aserigjksjdhasdfgn'
44
-
45
- # Make sure this key is owned by root with permissions 0400.
46
- #
47
- private_key : /etc/salt/my_test_key.pem
48
- keyname : my_test_key
49
- securitygroup : default
50
-
51
- # Optionally configure default region
52
- #
53
- location : ap-southeast-1
54
- availability_zone : ap-southeast-1b
55
-
56
- # Configure which user to use to run the deploy script. This setting is
57
- # dependent upon the AMI that is used to deploy. It is usually safer to
58
- # configure this individually in a profile, than globally. Typical users
59
- # are:
60
- #
61
- # Amazon Linux -> ec2-user
62
- # RHEL -> ec2-user
63
- # CentOS -> ec2-user
64
- # Ubuntu -> ubuntu
65
- #
66
- ssh_username : ec2-user
67
-
68
- # Optionally add an IAM profile
69
- iam_profile : ' arn:aws:iam::123456789012:instance-profile/ExampleInstanceProfile'
70
-
71
- provider : ec2
72
-
73
-
74
- my-ec2-southeast-private-ips :
75
- # Set up the location of the salt master
76
- #
77
- minion :
78
- master : saltmaster.example.com
79
-
80
- # Specify whether to use public or private IP for deploy script.
81
- #
82
- # Valid options are:
83
- # private_ips - The salt-master is also hosted with EC2
84
- # public_ips - The salt-master is hosted outside of EC2
85
- #
86
- ssh_interface : private_ips
87
-
88
- # Set the EC2 access credentials (see below)
89
- #
90
- id : HJGRYCILJLKJYG
91
- key : ' kdjgfsgm;woormgl/aserigjksjdhasdfgn'
92
-
93
- # Make sure this key is owned by root with permissions 0400.
94
- #
95
- private_key : /etc/salt/my_test_key.pem
96
- keyname : my_test_key
97
- securitygroup : default
98
-
99
- # Optionally configure default region
100
- #
101
- location : ap-southeast-1
102
- availability_zone : ap-southeast-1b
103
-
104
- # Configure which user to use to run the deploy script. This setting is
105
- # dependent upon the AMI that is used to deploy. It is usually safer to
106
- # configure this individually in a profile, than globally. Typical users
107
- # are:
108
- #
109
- # Amazon Linux -> ec2-user
110
- # RHEL -> ec2-user
111
- # CentOS -> ec2-user
112
- # Ubuntu -> ubuntu
113
- #
114
- ssh_username : ec2-user
115
-
116
- # Optionally add an IAM profile
117
- iam_profile : ' my other profile name'
118
-
119
- provider : ec2
15
+ # Note: This example is for /etc/salt/cloud.providers or any file in the
16
+ # /etc/salt/cloud.providers.d/ directory.
17
+
18
+ my-ec2-southeast-public-ips :
19
+ # Set up the location of the salt master
20
+ #
21
+ minion :
22
+ master : saltmaster.example.com
23
+
24
+ # Set up grains information, which will be common for all nodes
25
+ # using this provider
26
+ grains :
27
+ node_type : broker
28
+ release : 1.0.1
29
+
30
+ # Specify whether to use public or private IP for deploy script.
31
+ #
32
+ # Valid options are:
33
+ # private_ips - The salt-master is also hosted with EC2
34
+ # public_ips - The salt-master is hosted outside of EC2
35
+ #
36
+ ssh_interface : public_ips
37
+
38
+ # Set the EC2 access credentials (see below)
39
+ #
40
+ id : HJGRYCILJLKJYG
41
+ key : ' kdjgfsgm;woormgl/aserigjksjdhasdfgn'
42
+
43
+ # Make sure this key is owned by root with permissions 0400.
44
+ #
45
+ private_key : /etc/salt/my_test_key.pem
46
+ keyname : my_test_key
47
+ securitygroup : default
48
+
49
+ # Optionally configure default region
50
+ #
51
+ location : ap-southeast-1
52
+ availability_zone : ap-southeast-1b
53
+
54
+ # Configure which user to use to run the deploy script. This setting is
55
+ # dependent upon the AMI that is used to deploy. It is usually safer to
56
+ # configure this individually in a profile, than globally. Typical users
57
+ # are:
58
+ #
59
+ # Amazon Linux -> ec2-user
60
+ # RHEL -> ec2-user
61
+ # CentOS -> ec2-user
62
+ # Ubuntu -> ubuntu
63
+ #
64
+ ssh_username : ec2-user
65
+
66
+ # Optionally add an IAM profile
67
+ iam_profile : ' arn:aws:iam::123456789012:instance-profile/ExampleInstanceProfile'
68
+
69
+ provider : ec2
70
+
71
+
72
+ my-ec2-southeast-private-ips :
73
+ # Set up the location of the salt master
74
+ #
75
+ minion :
76
+ master : saltmaster.example.com
77
+
78
+ # Specify whether to use public or private IP for deploy script.
79
+ #
80
+ # Valid options are:
81
+ # private_ips - The salt-master is also hosted with EC2
82
+ # public_ips - The salt-master is hosted outside of EC2
83
+ #
84
+ ssh_interface : private_ips
85
+
86
+ # Set the EC2 access credentials (see below)
87
+ #
88
+ id : HJGRYCILJLKJYG
89
+ key : ' kdjgfsgm;woormgl/aserigjksjdhasdfgn'
90
+
91
+ # Make sure this key is owned by root with permissions 0400.
92
+ #
93
+ private_key : /etc/salt/my_test_key.pem
94
+ keyname : my_test_key
95
+ securitygroup : default
96
+
97
+ # Optionally configure default region
98
+ #
99
+ location : ap-southeast-1
100
+ availability_zone : ap-southeast-1b
101
+
102
+ # Configure which user to use to run the deploy script. This setting is
103
+ # dependent upon the AMI that is used to deploy. It is usually safer to
104
+ # configure this individually in a profile, than globally. Typical users
105
+ # are:
106
+ #
107
+ # Amazon Linux -> ec2-user
108
+ # RHEL -> ec2-user
109
+ # CentOS -> ec2-user
110
+ # Ubuntu -> ubuntu
111
+ #
112
+ ssh_username : ec2-user
113
+
114
+ # Optionally add an IAM profile
115
+ iam_profile : ' my other profile name'
116
+
117
+ provider : ec2
120
118
121
119
122
120
Access Credentials
0 commit comments