Skip to content

Instantly share code, notes, and snippets.

@jbfriedrich
Created September 17, 2018 06:42
Show Gist options
  • Save jbfriedrich/2de00ba51086be22e12fd483981cd0c1 to your computer and use it in GitHub Desktop.
Save jbfriedrich/2de00ba51086be22e12fd483981cd0c1 to your computer and use it in GitHub Desktop.
Saltstack Profile and Map Examples
dc1-product-base:
provider: vmware-dc1
clonefrom: product-centos7-base
devices:
cd:
CD/DVD drive 1:
device_type: client_device
mode: passthrough
disk:
Hard disk 1:
size: 25
thin_provision: True
network:
Network adapter 1:
name: Orch-218
adapter_type: vmxnet3
switch_type: distributed
domain: mydomain.com
domain: mydomain.com
dns_servers:
- 10.0.1.1
- 10.0.1.2
template: False
power_on: True
datacenter: dc1
cluster: dc1vcl1
resourcepool: Resources
datastore: shared-dstore01
folder: product-shard01
hardware_version: 10
extra_config:
mem.hotadd: 'yes'
cpu.hotadd: 'yes'
script_args: -r
deploy: True
private_key: /root/.ssh/id_rsa
ssh_username: root
delete_sshkeys: True
display_ssh_output: True
minion:
master: master.saltstack.server
log_level: info
hash_type: sha256
mine_functions:
host_name:
- mine_function: network.get_hostname
internal_ip:
- mine_function: network.interface_ip
- eth0
dc1-product-component1:
extends: dc1-product-base
num_cpus: 2
memory: 2048 MB
devices:
disk:
Hard disk 2:
size: 250
thin_provision: True
dc1-product-component2:
extends: dc1-product-base
num_cpus: 2
memory: 2048 MB
devices:
disk:
Hard disk 1:
size: 35
thin_provision: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment