This file contains hidden or 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
# vim: ft=yaml | |
cluster.name: {{ ES_CLUSTER_NAME }} | |
node.name: {{ grains['id'] }} | |
network.host: {{ salt['cmd.run']('awk \'/192.168/ {print $2}\' /etc/network/interfaces') }} | |
discovery.zen.ping.multicast.enabled: false | |
discovery.zen.ping.unicast.hosts: ["192.168.1.2", "192.168.1.3"] |
This file contains hidden or 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
# vim: ft=yaml | |
cluster.name: {{ ES_CLUSTER_NAME }} | |
node.name: {{ grains['id'] }} | |
network.host: {{ salt['cmd.run']('awk \'/192.168/ {print $2}\' /etc/network/interfaces') }} | |
discovery.zen.ping.multicast.enabled: false | |
discovery.zen.ping.unicast.hosts: ["192.168.1.2", "192.168.1.3"] |
This file contains hidden or 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
Write-Host "Configuring salt-minion service" | |
# install the service with nssm. This is where the binary and arguments are specified. | |
c:\salt\nssm.exe install salt-minion c:\salt\salt-minion.exe -c c:\salt\etc\salt -l quiet | |
# Make a friendly name, description, and make it start automatically. | |
Set-Service -name "salt-minion" ` | |
-displayName "Salt Minion" ` | |
-StartupType Automatic ` | |
-Description "Provides secure orchestration and centralized management" |
This file contains hidden or 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
import itertools | |
import functools | |
import fnmatch | |
import os | |
from StringIO import StringIO | |
import yaml | |
from yaml.parser import ParserError | |
import voluptuous as V |
This file contains hidden or 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
import itertools | |
import functools | |
import fnmatch | |
import os | |
from StringIO import StringIO | |
import yaml | |
from yaml.parser import ParserError | |
import voluptuous as V |
This file contains hidden or 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
# Include the instantiated macro here | |
include: | |
- pkg_repo.10gen | |
mongo-10gen-server: | |
pkg: | |
- installed | |
- require: | |
- file: 'pkg_repo.10gen' |
This file contains hidden or 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 -* | |
""" | |
Client module to Salt-API REST server. | |
""" | |
__author__ = 'Bruno Clermont' | |
__email__ = '[email protected]' | |
__version__ = (0, 0, 1) |
This file contains hidden or 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
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MYSQL driver | |
# gem install mysql2 | |
# | |
# Ensure the MySQL gem is defined in your Gemfile | |
# gem 'mysql2' | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html |
This file contains hidden or 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
""" | |
This enables us to call the minions and search for a specific role | |
""" | |
import logging | |
import salt.utils | |
log = logging.getLogger(__name__) | |
def all_by_roles(*args, **kwards): |
This file contains hidden or 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
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MYSQL driver | |
# gem install mysql2 | |
# | |
# Ensure the MySQL gem is defined in your Gemfile | |
# gem 'mysql2' | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html |