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
{% for plugin, data in collectd.plugins.iteritems() %} | |
collectd_config_{{ plugin }}: | |
file.{{ data.state }}: | |
- name: '/etc/collectd/collectd.conf.d/{{ plugin }}.conf' | |
- watch_in: | |
- service: collectd_service | |
{% if data.state == 'managed' -%} | |
- source: 'salt://collectd/files/collectd.conf.d/{{ plugin }}.conf.j2' | |
- user: 'root' | |
- group: 'root' |
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
# inside state file | |
{%- from "limits/map.jinja" import limits as instance with context %} | |
{% for app, limits in instance.apps.iteritems() -%} | |
{% set cfg = app + '.conf' -%} | |
limits_{{ app }}: | |
file.managed: | |
- name : '/etc/security/limits.d/{{ cfg }}' | |
- source : salt://limits/files/limits.conf.j2 | |
- user : root |
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
{% if not salt.file.directory_exists(nagiosplugins.install_dir) %} | |
# build-essential | |
nagiosplugins_buildpkgs_install: | |
pkg.installed: | |
- pkgs: {{ nagiosplugins.buildpkgs }} | |
nagiosplugins_source_extract: | |
archive.extracted: | |
- name: {{ nagiosplugins.build_dir }} | |
- source: {{ nagiosplugins.source.url }} |
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
#credit ssplatt | |
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: salt_solo | |
formula: test | |
dependencies: | |
- path: formulas/audit-formula |
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
# -*- coding: utf-8 -*- | |
# vim: ft=yaml | |
--- | |
driver: | |
name: vagrant | |
customize: | |
memory: 1024 | |
provisioner: | |
name: salt_solo |
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
poems: | |
bright: | | |
There once was a girl named bright. | |
who's speed was far faster than light. | |
She traveled one day, in a realative way, | |
and arrived on the previous night. |
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
GRUB_TIMEOUT=5 | |
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" | |
GRUB_DEFAULT=saved | |
GRUB_DISABLE_SUBMENU=true | |
GRUB_TERMINAL_OUTPUT="console" | |
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet" | |
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=off" | |
GRUB_DISABLE_RECOVERY="true" | |
grub_options: |
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
{% for k, v in ceph.config.global.items() -%} | |
{{ k.ljust(22) }} = {{ v }} | |
{% endfor -%} |