I hereby claim:
- I am hvanderlaan on github.
- I am hvanderlaan (https://keybase.io/hvanderlaan) on keybase.
- I have a public key whose fingerprint is 5A66 968F 59C5 388A A2DC 9410 0C93 BBBE CA38 9531
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# deploy-pxe-server.sh: This script will setup a pxe boot / install server | |
# it will install all required packages and will place or alter the | |
# configurations files if needed. | |
# | |
# Author : Harald van der Laan | |
# Version: v0.1 | |
# Date : 15/apr/2015 |
#!/bin/bash | |
# file : deploy-lxc-alpine.sh | |
# purpose: deploy a new alpine container that is ready for ansible management | |
# | |
# author : harald van der laan | |
# date : 2016/04/19 | |
# version: v1.0 | |
lxcName=${1} |
#!/bin/bash | |
# file : create-lxc-alpine-ansible-node.sh | |
# purpose: deploy a new alpine container that is the ansible server | |
# | |
# author : harald van der laan | |
# date : 2016/04/19 | |
# version: v1.0 | |
lxcName="ansible01" |
user@host ~ $ lxc launch ubutnu wp-server
user@host ~ $ lxc exec wp-server -- bash
root@wp-server ~ # apt-get update
root@wp-server ~ # apt-get --yes dist-upgrade
root@wp-server ~ # apt-get --yes install wget apache2 libapache2-mod-php7.0 mysql-server php7.0-mysql
root@wp-server ~ # msyql -u root -p
After a while of messing around with the free / demo version of Ansible Tower I thought that this could also be done with free tools. With some help from the internet and as an IT consultant I found the way forward.
As we all known Ansible is for free and is a package in the Ubuntu repository. Ansible Tower is a frontend for Ansible that will provide scheduler and a fancy webfrontend.
Rundeck is a job scheduler and runbook administration that is for free and also has a fancy webfrontend.
So for the poor man's solution we are going to use the best of both worlds.
New in Ansible 1.5, “Vault” is a feature of ansible that allows keeping sensitive data such as passwords or keys in encrypted files, rather than as plaintext in your playbooks or roles. These vault files can then be distributed or placed in source control. To enable this feature, a command line tool, ansible-vault is used to edit files, and a command line flag –ask-vault-pass or –vault-password-file is used. Alternately, you may specify the location of a password file or command Ansible to always prompt for the password in your ansible.cfg file. These options require no command line flag usage.
#!/usr/bin/env python | |
# file : nagiosTelegram.py | |
# purpose : send nagion notifications via Telegram bot | |
# | |
# author : harald van der laan | |
# date : 2017/04/01 | |
# version : v1.0.1 | |
# | |
# changelog: |
[tardfri] | |
hubip = x.x.x.x | |
securityid = AABBCCDDEEFFGGHH |