Configuring cloud profiles

Salt cloud profiles are the components that provide more cloud service provider-specific configuration options, and also minion-specific parameters when using Salt cloud. In this recipe, you will learn how to use cloud profile configurations in Salt.

How to do it...

Edit /etc/salt/cloud.profiles to have the following entries:

cookbook_ec2_prod_db: provider: cookbook_ec2_us_west_2 minion: master: salt-master environment: production image: ami-721b7b42 script: bootstrap-salt sync_after_install: all network_interfaces: - DeviceIndex: 0 PrivateIpAddresses: - Primary: True AssociatePublicIpAddress: False SubnetId: subnet-4236c535 SecurityGroupId: - sg-5b35a03e grains: server_type: db environment: production tag: {'Environment': ...

Get Salt Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.