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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo systemctl stop ntp | |
sudo ntpd -gq | |
sudo systemctl start ntp | |
sudo apt-get install xfsprogs python-pip |
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
{%- from "grub/map.jinja" import grub with context %} | |
grub_default_config: | |
file.managed: | |
- name: '/etc/default/grub' | |
- source: salt://grub/files/default_grub.j2 | |
- user: root | |
- group : root | |
- mode: 0644 | |
- template: jinja |
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
#!/bin/sh - | |
#====================================================================================================================== | |
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
#====================================================================================================================== | |
# | |
# FILE: bootstrap-salt.sh | |
# | |
# DESCRIPTION: Bootstrap Salt installation for various systems/distributions | |
# | |
# BUGS: https://github.com/saltstack/salt-bootstrap/issues |
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
#!/bin/sh | |
## | |
## modified chef install script | |
## for kitchen-salt, the entirety of chef is not required | |
## but ruby and gem are required in a specific directory | |
## for kitchen tests to run | |
## | |
packages="ruby ruby-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
check_for_minion_to_autoaccept: | |
local.file.line: | |
- name: /etc/salt/autoaccept.conf | |
- content: {{ data.id }} | |
- mode: delete | |
- require_in: | |
- wheel: minion_auto_add | |
minion_auto_add: | |
wheel.key.accept: |
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
---------- | |
ID: networking_system_config | |
Function: network.system | |
Result: True | |
Comment: Global network settings are up to date. | |
Started: 21:06:15.944862 | |
Duration: 28.254 ms | |
Changes: | |
---------- | |
network_settings: |
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
#!/bin/sh | |
packages="ruby ruby-dev" | |
# install_file TYPE FILENAME | |
# TYPE is "rpm", "deb", "solaris", "sh", etc. | |
install_file() { | |
echo "Installing the ruby things" | |
case "$1" in | |
"redhat") |
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
#!/bin/sh - | |
#====================================================================================================================== | |
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
#====================================================================================================================== | |
# | |
# FILE: bootstrap-salt.sh | |
# | |
# DESCRIPTION: Bootstrap Salt installation for various systems/distributions | |
# | |
# BUGS: https://github.com/saltstack/salt-bootstrap/issues |
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
{ patterns = ( | |
{ name = 'comment.line.number-sign.grok'; | |
match = '^#[^\n]+\n'; | |
}, | |
{ name = 'variable.parameter.grok'; | |
begin = '^[A-Z0-9_\-]+'; | |
end = '\s'; | |
}, | |
{ name = 'variable.other.grok'; | |
begin = '%{'; |
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
#!/usr/bin/env python | |
import zulip | |
import mailbox | |
client = zulip.Client(email="[email protected]", | |
api_key="111222aaabbb", | |
site="https://zulip.server.tld/api/") | |
mailbox_loc = '/var/mail/user' |