Skip to content

Instantly share code, notes, and snippets.

---------
Rendering SLS 'base:directory' failed: Unknown yaml render error; line 24
---
[...]
- mode: 755
- makedirs: True
virtual_env_directory:
file.directory:
##### Primary configuration settings #####
##########################################
# This configuration file is used to manage the behavior of the Salt Master
# Values that are commented out but have no space after the comment are
# defaults that need not be set in the config. If there is a space after the
# comment that the value is presented as an example and is not the default.
# Per default, the master will automatically include all config files
# from master.d/*.conf (master.d is a directory in the same directory
# as the main master config file)
/opt/apps/my_dir:
file.directory:
- user: vagrant
- group: users
- mode: 755
- makedirs: True
/opt/apps/my_dir/versions/current:
file.directory:
- user: vagrant
mysql:
server:
root_password: False # - to have root@localhost without password
# root_password: 'somepass'
user: mysql
# my.cnf sections changes /usr/lib/python2.7/dist-packages/salt/utils/pyobjects.py
mysqld:
# you can use either underscore or hyphen in param names
bind-address: 0.0.0.0
log_bin: /var/log/mysql/mysql-bin.log
#!pyobjects
Pkg.installed("git")
if pillar('webserver_role')=='hrbdf':
Git.latest('http://git_url.git', target='/path/to/my/target_dir')
include:
- mysql
ins_pkgs:
mysql.client: []
ins:
{% if pillar.get('webserver_role')=='hrbdf' %}
- python
{% endif %}
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"