2013-08-13 00:35:25 +02:00
|
|
|
salt:
|
2015-03-24 17:01:58 +01:00
|
|
|
# Set this to true to clean any non-salt-formula managed files out of
|
|
|
|
# /etc/salt/{master,minion}.d ... You really don't want to do this on 2015.2
|
|
|
|
# and up as it'll wipe out important files that Salt relies on.
|
2015-03-23 22:53:24 +01:00
|
|
|
clean_config_d_dir: False
|
2015-01-13 20:13:51 +01:00
|
|
|
|
2015-03-24 18:08:08 +01:00
|
|
|
# Set this to False to not have the formula install packages (in the case you
|
|
|
|
# install Salt via git/pip/etc.)
|
|
|
|
install_packages: True
|
|
|
|
|
2015-01-13 20:13:51 +01:00
|
|
|
# to overwrite map.jinja salt packages
|
|
|
|
lookup:
|
|
|
|
salt-master: 'salt-master'
|
|
|
|
salt-minion: 'salt-minion'
|
|
|
|
salt-syndic: 'salt-syndic'
|
|
|
|
salt-cloud: 'salt-cloud'
|
|
|
|
salt-ssh: 'salt-ssh'
|
|
|
|
|
|
|
|
# salt master config
|
2013-08-13 00:35:25 +02:00
|
|
|
master:
|
|
|
|
fileserver_backend:
|
|
|
|
- git
|
|
|
|
- roots
|
|
|
|
gitfs_remotes:
|
2014-11-13 05:32:43 +01:00
|
|
|
- git://github.com/saltstack-formulas/salt-formula.git:
|
2014-10-24 02:43:23 +02:00
|
|
|
- base: develop
|
2013-08-13 00:35:25 +02:00
|
|
|
file_roots:
|
2013-08-13 23:40:48 +02:00
|
|
|
base:
|
2013-08-13 00:35:25 +02:00
|
|
|
- /srv/salt
|
2015-05-14 12:37:36 +02:00
|
|
|
pillar_roots:
|
|
|
|
base:
|
|
|
|
- /srv/pillar
|
2015-02-05 22:07:54 +01:00
|
|
|
# for salt-api with tornado rest interface
|
|
|
|
rest_tornado:
|
|
|
|
port: 8000
|
|
|
|
ssl_crt: /etc/pki/api/certs/server.crt
|
|
|
|
ssl_key: /etc/pki/api/certs/server.key
|
|
|
|
debug: False
|
|
|
|
disable_ssl: False
|
2016-05-26 16:52:10 +02:00
|
|
|
## for external auth - LDAP
|
|
|
|
# filter to use for Active Directory LDAP
|
|
|
|
auth.ldap.filter: {% raw %}'sAMAccountName={{username}}'{% endraw %}
|
|
|
|
# filter to use for Most other LDAP servers
|
|
|
|
auth.ldap.filter: {% raw %}'uid={{ username }}'{% endraw %}
|
2015-03-23 22:53:24 +01:00
|
|
|
|
2015-01-13 20:13:51 +01:00
|
|
|
# salt minion config:
|
2013-08-13 00:35:25 +02:00
|
|
|
minion:
|
2015-02-06 22:27:55 +01:00
|
|
|
|
|
|
|
# single master setup
|
2013-08-13 00:35:25 +02:00
|
|
|
master: salt
|
2015-03-23 22:53:24 +01:00
|
|
|
|
2015-02-06 22:27:55 +01:00
|
|
|
# multi master setup
|
2016-04-04 19:48:20 +02:00
|
|
|
#master:
|
|
|
|
#- salt_master_1
|
|
|
|
#- salt_master_2
|
2015-03-23 22:53:24 +01:00
|
|
|
|
2014-12-08 22:17:07 +01:00
|
|
|
fileserver_backend:
|
|
|
|
- git
|
|
|
|
- roots
|
|
|
|
gitfs_remotes:
|
|
|
|
- git://github.com/saltstack-formulas/salt-formula.git:
|
|
|
|
- base: develop
|
|
|
|
file_roots:
|
|
|
|
base:
|
|
|
|
- /srv/salt
|
2015-05-14 12:37:36 +02:00
|
|
|
pillar_roots:
|
|
|
|
base:
|
|
|
|
- /srv/pillar
|
2013-09-03 16:45:24 +02:00
|
|
|
module_config:
|
|
|
|
test: True
|
|
|
|
test.foo: foo
|
2014-10-02 08:44:48 +02:00
|
|
|
test.bar:
|
2013-09-03 16:45:24 +02:00
|
|
|
- baz
|
|
|
|
- quo
|
|
|
|
test.baz:
|
|
|
|
spam: sausage
|
|
|
|
cheese: bread
|
2015-01-13 20:13:51 +01:00
|
|
|
|
2015-04-03 21:35:14 +02:00
|
|
|
# salt mine setup
|
|
|
|
mine_interval: 60
|
|
|
|
# mine_functions can be set at the top level of the pillar, and
|
|
|
|
# that is preferable because it doesn't affect the conf file and
|
|
|
|
# doesn't require a minion restart. However, you can configure it
|
|
|
|
# here instead if you really want to.
|
|
|
|
mine_functions:
|
|
|
|
network.interface_ip: [eth0]
|
|
|
|
|
2015-01-13 20:13:51 +01:00
|
|
|
# salt cloud config
|
2014-07-20 16:59:38 +02:00
|
|
|
cloud:
|
|
|
|
master: salt
|
2016-05-06 20:45:41 +02:00
|
|
|
|
|
|
|
# For non-templated custom cloud provider/profile/map files
|
|
|
|
providers:
|
|
|
|
provider-filename1.conf:
|
|
|
|
vmware-prod:
|
|
|
|
driver: vmware
|
|
|
|
user: myusernameprod
|
|
|
|
password: mypassword
|
|
|
|
vmware-nonprod:
|
|
|
|
driver: vmware
|
|
|
|
user: myusernamenonprod
|
|
|
|
password: mypassword
|
|
|
|
profiles:
|
|
|
|
profile-filename1.conf:
|
|
|
|
server-non-prod:
|
|
|
|
clonefrom: rhel6xtemplatenp
|
|
|
|
grains:
|
|
|
|
platform:
|
|
|
|
name: salt
|
|
|
|
realm: lab
|
|
|
|
subscription_level: standard
|
|
|
|
memory: 8GB
|
|
|
|
num_cpus: 4
|
|
|
|
password: sUpErsecretey
|
|
|
|
provider: vmware-nonprod
|
|
|
|
maps:
|
|
|
|
map-filename1.map:
|
|
|
|
server-non-prod:
|
|
|
|
- host.mycompany.com:
|
|
|
|
grains:
|
|
|
|
environment: dev1
|
2015-04-03 23:33:25 +02:00
|
|
|
|
|
|
|
# You can take profile and map templates from an alternate location
|
2015-04-04 01:30:26 +02:00
|
|
|
# if you want to write your own.
|
|
|
|
template_sources:
|
2015-04-13 22:07:03 +02:00
|
|
|
providers: salt://salt/files/cloud.providers.d
|
|
|
|
profiles: salt://salt/files/cloud.profiles.d
|
|
|
|
maps: salt://salt/files/cloud.maps.d
|
2015-04-03 23:33:25 +02:00
|
|
|
|
2015-04-04 01:30:26 +02:00
|
|
|
# These settings are used by the default provider templates and
|
|
|
|
# only need to be set for the ones you're using.
|
2014-07-20 16:59:38 +02:00
|
|
|
aws_key: AWSKEYIJSHJAIJS6JSH
|
|
|
|
aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
|
|
|
|
gce_project: test
|
|
|
|
gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
|
2014-10-04 03:14:38 +02:00
|
|
|
rsos_user: afeawofghob
|
|
|
|
rsos_tenant: tenant_id_number
|
|
|
|
rsos_apikey: WFJIOJEOIGHSOFHESO
|
|
|
|
rsos_regions:
|
|
|
|
- ORD
|
|
|
|
- DFW
|
|
|
|
- IAD
|
|
|
|
- SYD
|
|
|
|
- HKG
|
2014-10-24 21:48:56 +02:00
|
|
|
reactor:
|
|
|
|
- 'deploy':
|
|
|
|
- /srv/salt/reactors/deploy.sls
|
2014-10-28 17:45:32 +01:00
|
|
|
ssh_roster:
|
|
|
|
prod1:
|
|
|
|
host: host.example.com
|
|
|
|
user: ubuntu
|
|
|
|
sudo: True
|
|
|
|
priv: /etc/salt/ssh_keys/sshkey.pem
|
2016-04-19 18:51:17 +02:00
|
|
|
gitfs:
|
|
|
|
keys:
|
|
|
|
global:
|
|
|
|
# key and pub end up being the extension used on the key file. values other than key and pub are possible
|
|
|
|
key: |
|
|
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
|
|
...........
|
|
|
|
-----END RSA PRIVATE KEY-----
|
|
|
|
pub: |
|
|
|
|
...........
|
2014-10-04 03:14:38 +02:00
|
|
|
|
2014-07-20 16:59:38 +02:00
|
|
|
salt_cloud_certs:
|
|
|
|
aws:
|
|
|
|
pem: |
|
|
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
|
|
...........
|
|
|
|
-----END RSA PRIVATE KEY-----
|
|
|
|
|
|
|
|
gce:
|
|
|
|
pem: |
|
|
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
|
|
...........
|
|
|
|
-----END RSA PRIVATE KEY-----
|
2014-12-23 16:02:08 +01:00
|
|
|
|
|
|
|
salt_formulas:
|
|
|
|
git_opts:
|
|
|
|
# The Git options can be customized differently for each
|
|
|
|
# environment, if an option is missing in a given environment, the
|
|
|
|
# value from "default" is used instead.
|
|
|
|
default:
|
2016-02-16 16:20:42 +01:00
|
|
|
# URL where the formulas git repositories are downloaded from
|
|
|
|
# it will be suffixed with <formula-name>.git
|
|
|
|
baseurl: https://github.com/saltstack-formulas
|
2014-12-23 16:02:08 +01:00
|
|
|
# Directory where Git repositories are downloaded
|
|
|
|
basedir: /srv/formulas
|
|
|
|
# Update the git repository to the latest version (False by default)
|
|
|
|
update: False
|
|
|
|
# Options passed directly to the git.latest state
|
|
|
|
options:
|
|
|
|
rev: master
|
|
|
|
dev:
|
|
|
|
basedir: /srv/formulas/dev
|
|
|
|
update: True
|
|
|
|
options:
|
|
|
|
rev: develop
|
|
|
|
# Options of the file.directory state that creates the directory where
|
|
|
|
# the git repositories of the formulas are stored
|
|
|
|
basedir_opts:
|
|
|
|
makedirs: True
|
|
|
|
user: root
|
|
|
|
group: root
|
|
|
|
mode: 755
|
|
|
|
# List of formulas to enable in each environment
|
|
|
|
list:
|
|
|
|
base:
|
2016-02-16 16:20:42 +01:00
|
|
|
- salt-formula
|
|
|
|
- postfix-formula
|
2014-12-23 16:02:08 +01:00
|
|
|
dev:
|
2016-02-16 16:20:42 +01:00
|
|
|
- salt-formula
|
|
|
|
- postfix-formula
|
|
|
|
- openssh-formula
|