O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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': ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required