Skip to content

Instantly share code, notes, and snippets.

View goldyfruit's full-sized avatar
🦎

Gaëtan Trellu goldyfruit

🦎
View GitHub Profile
@goldyfruit
goldyfruit / pcs-resources.yml
Created August 11, 2016 13:20
ansible-pacemaker resource creation
- name: Creating HAproxy cloned resource
pcs_resource:
command=create
resource_id=haproxy
type=systemd:haproxy
clone=true
clone_max=3
disable=true
args:
operations:
@goldyfruit
goldyfruit / pki.yml
Last active March 2, 2016 21:19
[ansible] Running keystone-manage pki_setup on one host and send SSL certificates on other nodes
---
- name: Ansible tests playbook
hosts: all
remote_user: root
tasks:
- name: Running PKI setup and creating a tarball with certificates
shell:
keystone-manage pki_setup --keystone-user keystone --keystone-group keystone && \
cd /etc/keystone/ && \
@goldyfruit
goldyfruit / hosts
Last active February 16, 2016 23:16
[ansible] Generate the /etc/hosts with Ansible
#!/usr/bin/env python
import json
data = {
"openstack": {
"children": [
"controller"
],
"vars": {