-
-
Save developerinlondon/7364d78f2376d22c989b12345dc8c304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_roots: | |
base: | |
- /saltstack/salt | |
auto_accept: true | |
fileserver_backend: | |
- roots | |
- git | |
gitfs_remotes: | |
- https://github.com/saltstack-formulas/apache-formula | |
- https://github.com/saltstack-formulas/memcached-formula | |
#gitfs_root: base/ | |
startup_states: 'highstate' | |
pillar_roots: | |
base: | |
- /saltstack/pillar | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nayeem:~# cat /etc/salt/minion | |
## Look locally for files | |
master: 127.0.0.1 | |
id: nayeem.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nayeem:~# /etc/init.d/salt-master restart | |
[ ok ] Restarting salt-master (via systemctl): salt-master.service. | |
root@nayeem:~# salt nayeem.dev cp.list_master | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
nayeem.dev: | |
- .github/PULL_REQUEST_TEMPLATE.md | |
- .gitignore | |
- .kitchen.yml | |
- FORMULA | |
- LICENSE | |
- README.rst | |
- _grains/custom_grains.py | |
- apache/config.sls | |
- apache/debian_full.sls | |
- apache/files/Debian/apache-2.2.config.jinja | |
- apache/files/Debian/apache-2.4.config.jinja | |
- apache/files/Debian/conf-available/remoteip.conf.jinja | |
- apache/files/Debian/envvars-2.2.jinja | |
- apache/files/Debian/envvars-2.4.jinja | |
- apache/files/Debian/modsecurity.conf.jinja | |
- apache/files/Debian/mpm/mpm_event.conf.jinja | |
- apache/files/Debian/mpm/mpm_prefork.conf.jinja | |
- apache/files/Debian/mpm/mpm_worker.conf.jinja | |
- apache/files/Debian/ports-2.2.conf.jinja | |
- apache/files/Debian/ports-2.4.conf.jinja | |
- apache/files/Debian/sites-available/000-default.conf | |
- apache/files/FreeBSD/apache-2.4.config.jinja | |
- apache/files/FreeBSD/envvars-2.4.jinja | |
- apache/files/FreeBSD/generic_module.conf.jinja | |
- apache/files/FreeBSD/mod_cgi.conf.jinja | |
- apache/files/FreeBSD/mod_perl.conf.jinja | |
- apache/files/FreeBSD/mod_php5.conf.jinja | |
- apache/files/FreeBSD/mod_proxy.conf.jinja | |
- apache/files/FreeBSD/mod_proxy_http.conf.jinja | |
- apache/files/FreeBSD/mod_rewrite.conf.jinja | |
- apache/files/FreeBSD/mod_ssl.conf.jinja | |
- apache/files/FreeBSD/mod_suexec.conf.jinja | |
- apache/files/FreeBSD/ports-2.4.conf.jinja | |
- apache/files/FreeBSD/security.conf.jinja | |
- apache/files/RedHat/apache-2.2.config.jinja | |
- apache/files/RedHat/apache-2.4.config.jinja | |
- apache/files/RedHat/modsecurity.conf.jinja | |
- apache/files/Suse/apache-2.4.config.jinja | |
- apache/files/Suse/global.config.jinja | |
- apache/init.sls | |
- apache/logrotate.sls | |
- apache/manage_security.sls | |
- apache/map.jinja | |
- apache/mod_actions.sls | |
- apache/mod_cgi.sls | |
- apache/mod_dav_svn.sls | |
- apache/mod_fcgid.sls | |
- apache/mod_headers.sls | |
- apache/mod_mpm.sls | |
- apache/mod_pagespeed.sls | |
- apache/mod_perl2.sls | |
- apache/mod_php5.sls | |
- apache/mod_proxy.sls | |
- apache/mod_proxy_http.sls | |
- apache/mod_remoteip.sls | |
- apache/mod_rewrite.sls | |
- apache/mod_security/init.sls | |
- apache/mod_security/rules.sls | |
- apache/mod_socache_shmcb.sls | |
- apache/mod_ssl.sls | |
- apache/mod_suexec.sls | |
- apache/mod_vhost_alias.sls | |
- apache/mod_wsgi.sls | |
- apache/modsecurity.yaml | |
- apache/modules.sls | |
- apache/no_default_vhost.sls | |
- apache/osfingermap.yaml | |
- apache/own_default_vhost.sls | |
- apache/register_site.sls | |
- apache/vhosts/proxy.tmpl | |
- apache/vhosts/redirect.tmpl | |
- apache/vhosts/standard.sls | |
- apache/vhosts/standard.tmpl | |
- common/debian.sls | |
- common/init.sls | |
- common/packages.sls | |
- common/redhat.sls | |
- common/resolvconf.sls | |
- common/vimrc | |
- memcached/config.sls | |
- memcached/init.sls | |
- memcached/libmemcached.sls | |
- memcached/macros.sls | |
- memcached/map.jinja | |
- memcached/python_memcached.sls | |
- memcached/templates/conf.d/memcached | |
- memcached/templates/empty | |
- memcached/templates/memcached.conf | |
- memcached/templates/sysconfig/memcached | |
- pillar.example | |
- test/integration/mod_security/serverspec/mod_security_spec.rb | |
- test/shared/spec_helper.rb | |
- top.sls | |
root@nayeem:~# ls /var/cache/salt/minion/files/base | |
_grains top.sls | |
root@nayeem:~# ls /var/cache/salt/master/ | |
file_lists gitfs jobs minions proc queues roots syndics tokens | |
root@nayeem:~# ls /var/cache/salt/master/gitfs | |
4fe7fe45a8ec917f62de15bae4db6955 bb4dfe4784e9a097dc03a8941aef3e69 envs.p hash refs remote_map.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nayeem:~# salt-call state.highstate | |
[INFO ] Determining pillar cache | |
[INFO ] Determining pillar cache | |
[INFO ] Loading fresh modules for state activity | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://top.sls' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/beacons' | |
[INFO ] Syncing beacons for environment 'base' | |
[INFO ] Loading cache from salt://_beacons, for base) | |
[INFO ] Caching directory u'_beacons/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules' | |
[INFO ] Syncing modules for environment 'base' | |
[INFO ] Loading cache from salt://_modules, for base) | |
[INFO ] Caching directory u'_modules/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states' | |
[INFO ] Syncing states for environment 'base' | |
[INFO ] Loading cache from salt://_states, for base) | |
[INFO ] Caching directory u'_states/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/sdb' | |
[INFO ] Syncing sdb for environment 'base' | |
[INFO ] Loading cache from salt://_sdb, for base) | |
[INFO ] Caching directory u'_sdb/' for environment 'base' | |
[INFO ] Syncing grains for environment 'base' | |
[INFO ] Loading cache from salt://_grains, for base) | |
[INFO ] Caching directory u'_grains/' for environment 'base' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://_grains/custom_grains.py' | |
[INFO ] Copying u'/var/cache/salt/minion/files/base/_grains/custom_grains.py' to u'/var/cache/salt/minion/extmods/grains/custom_grains.py' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers' | |
[INFO ] Syncing renderers for environment 'base' | |
[INFO ] Loading cache from salt://_renderers, for base) | |
[INFO ] Caching directory u'_renderers/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners' | |
[INFO ] Syncing returners for environment 'base' | |
[INFO ] Loading cache from salt://_returners, for base) | |
[INFO ] Caching directory u'_returners/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/output' | |
[INFO ] Syncing output for environment 'base' | |
[INFO ] Loading cache from salt://_output, for base) | |
[INFO ] Caching directory u'_output/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils' | |
[INFO ] Syncing utils for environment 'base' | |
[INFO ] Loading cache from salt://_utils, for base) | |
[INFO ] Caching directory u'_utils/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/log_handlers' | |
[INFO ] Syncing log_handlers for environment 'base' | |
[INFO ] Loading cache from salt://_log_handlers, for base) | |
[INFO ] Caching directory u'_log_handlers/' for environment 'base' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/proxy' | |
[INFO ] Syncing proxy for environment 'base' | |
[INFO ] Loading cache from salt://_proxy, for base) | |
[INFO ] Caching directory u'_proxy/' for environment 'base' | |
[INFO ] Loading fresh modules for state activity | |
local: | |
Data failed to compile: | |
---------- | |
Pillar failed to render with the following messages: | |
---------- | |
Specified SLS 'apache' in environment 'base' is not available on the salt master | |
---------- | |
Specified SLS 'memcached' in environment 'base' is not available on the salt master | |
root@nayeem:~# salt nayeem.dev state.highstate | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
[WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is required for this value | |
nayeem.dev: | |
Data failed to compile: | |
---------- | |
Pillar failed to render with the following messages: | |
---------- | |
Specified SLS 'apache' in environment 'base' is not available on the salt master | |
---------- | |
Specified SLS 'memcached' in environment 'base' is not available on the salt master | |
ERROR: Minions returned with non-zero exit code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nayeem:~# cat /saltstack/pillar/top.sls | |
base: | |
'*': | |
- common | |
# 'companysite-server': | |
'nayeem.dev': | |
- apache | |
- memcached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nayeem:~# cat /saltstack/salt/top.sls | |
base: | |
'*': | |
- common | |
# 'companysite-server': | |
# - docker | |
root@nayeem:~# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-03-17 16:13:05,112 [salt.template ][ERROR ][27022] Template was specified incorrectly: False | |
2017-03-17 16:13:05,112 [salt.state ][ERROR ][27022] No contents found in top file | |
2017-03-17 16:15:02,869 [salt.cli.daemons ][WARNING ][28758] IMPORTANT: Do not use md5 hashing algorithm! Please set "hash_type" to SHA256 in Salt Minion config! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment