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 | |
set -o pipefail | |
[[ -n "$WORKING_DIR" ]] || WORKING_DIR="$1" | |
[[ -n "$WORKING_DIR" ]] || WORKING_DIR=$(pwd) | |
function failure() | |
{ | |
echo "$@" |
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
# Example from http://www.screenlyapp.com/use-cases/dashboard/nagios.html | |
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3 | |
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3 | |
Alias /nagios3/stylesheets /etc/nagios3/stylesheets | |
Alias /nagios3 /usr/share/nagios3/htdocs | |
<Location /abc123> | |
# Hard code credentials | |
AuthBasicFake nagiosadmin nagiosadmin |
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
Put this in your `local-configure.yml` file, add as many users as you need: | |
users: | |
- name: fulvio | |
sudoer: yes | |
auth_key: ssh-rsa blahblahblahsomekey this is actually the public key in cleartext | |
- name: plone_buildout | |
group: plone_group | |
sudoer: no | |
auth_key: ssh-rsa blahblahblah ansible-generated on default |