add salt master and minion pillars

This commit is contained in:
Andrey Abramov 2019-09-13 18:14:58 +03:00
parent dd36ac836f
commit 8fd68bda9c
4 changed files with 115 additions and 1 deletions

57
pillar/salt/master.sls Normal file
View File

@ -0,0 +1,57 @@
salt:
master:
conf:
client_acl_blacklist:
users: ['^(?!sudo_|root$).*$']
color: true
cython_enable: true
enable_gpu_grains: false
failhard: false
file_buffer_size: 1048576
file_recv: false
hash_type: sha512
interface: '::'
ipv6: true
jinja_lstrip_blocks: true
jinja_trim_blocks: true
job_cache: true
keep_jobs: 12
key_cache: sched
key_logfile: /var/log/salt/key
log_datefmt: '%H:%M:%S'
log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
log_file: /var/log/salt/master
log_fmt_console: '%(asctime)s %(colorlevel)s %(colormsg)s [%(name)s]'
log_fmt_logfile: '%(asctime)s,%(msecs)03.0f %(bracketprocess)s%(bracketname)s%(bracketlevel)s
%(message)s'
log_level: info
log_level_logfile: info
loop_interval: 60
minion_data_cache: true
order_masters: true
pidfile: /run/salt-master.pid
pillar_raise_on_missing: true
pillarenv_from_saltenv: true
publish_port: 4505
renderer: yaml_jinja
ret_port: 4506
sign_pub_messages: true
sock_dir: /run/salt/master
state_output: changes
state_top_saltenv: base
state_verbose: false
timeout: 15
token_expire: 43200
top_file_merging_strategy: same
user: root
verify_env: true
worker_threads: 4
yaml_utf8: true
repos:
extra:
common:
default-branch: master
remote: 'git+ssh://git@github.com/rbkmoney/salt-common'
main:
name: rbkmoney-infra
remote: 'git+ssh://git@github.com/rbkmoney/rbkmoney-infra'

55
pillar/salt/minion.sls Normal file
View File

@ -0,0 +1,55 @@
salt:
minion:
conf:
acceptance_wait_time: 60
acceptance_wait_time_max: 0
auth_safemode: false
auth_timeout: 60
auth_tries: 7
autoload_dynamic_modules: true
cache_jobs: false
cachedir: /var/cache/salt/minion
clean_dynamic_modules: true
color: true
cython_enable: true
environment: base
grains_cache: false
grains_cache_expiration: 300
grains_refresh_every: 10
hash_type: sha512
ipv6: true
log_datefmt: '%H:%M:%S'
log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
log_file: /var/log/salt/minion
log_fmt_console: '%(asctime)s %(colorlevel)s %(colormsg)s [%(name)s]'
log_fmt_logfile: '%(asctime)s,%(msecs)03.0f %(bracketprocess)s%(bracketname)s%(bracketlevel)s
%(message)s'
log_level: info
log_level_logfile: info
master: [salt-master.linode.rbkmoney.dev]
master_alive_interval: 300
master_port: 4506
master_type: failover
multiprocessing: true
pidfile: /run/salt-minion.pid
pillar_raise_on_missing: true
pillarenv: base
pillarenv_from_saltenv: true
ping_interval: 5
pki_dir: /etc/salt/pki/minion
random_reauth_delay: 60
rejected_retry: false
renderer: yaml_jinja
retry_dns: 0
root_dir: /
sock_dir: /run/salt/minion
state_aggregate: true
state_output: changes
state_output_profile: false
state_verbose: false
strip_colors: false
tcp_keepalive: true
tcp_keepalive_idle: 60
tcp_keepalive_intvl: 45
user: root
verify_env: true

View File

@ -2,3 +2,5 @@
salt-master.linode.rbkmoney.dev:
- gentoo.makeconf.default
- gentoo.arch.linode
- salt.minion
- salt.master

View File

@ -1,6 +1,6 @@
{{ saltenv }}:
salt-master.linode.rbkmoney.dev:
- gentoo
- gentoo # +
- openrc
- ssl
- gentoo.portage.packages