Skip to content

Instantly share code, notes, and snippets.

View ccamacho's full-sized avatar
🍼

Carlos Camacho Gonzalez ccamacho

🍼
View GitHub Profile
@ccamacho
ccamacho / pedantically_commented_playbook.yml
Created November 2, 2016 18:12 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
---
- include_vars: secrets.yml
- apt: pkg=fuse state=absent
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- libcurl4-openssl-dev
- libxml2-dev
- mime-support
---
- include_vars: secrets.yml
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- mime-support
- libfuse-dev
- libcurl4-openssl-dev
@ccamacho
ccamacho / gist:960c6b1d0e916dbe9641ebdf87868ead
Created October 13, 2016 14:04 — forked from tofarley/gist:8285845
My Blender render farm ansible playbook.
---
- name: Create render slaves on Rackspace Cloud
hosts: renderslaves
user: root
connection: local
gather_facts: False
tasks:
- name: Provision a set of instances
local_action:
module: rax
@ccamacho
ccamacho / add release note with reno
Created September 23, 2016 10:05
add release note with reno
reno new <slug> #Slug... add-support-metricd-workers
vim releasenotes/note/<slug>-<id>.yaml
#Edit the release note with the content of the update.
#Check http://docs.openstack.org/developer/reno/usage.html
#Example https://github.com/openstack/puppet-keystone/blob/master/releasenotes/notes/os_service_default-9caeeb340d4bb303.yaml
@ccamacho
ccamacho / tripleoui
Last active September 22, 2016 14:06
(03:49:22 PM) jtomasek: ccamacho: I've been using this tool up to now https://github.com/flofuchs/o3-virt-setup
(03:50:25 PM) jtomasek: ccamacho: although it should be much easier to install GUI as it is going to get installed as part of undercloud. mandre has last puppet patch pending to achieve that afaik
(03:52:12 PM) mandre: jtomasek: that last patch was merged yesterday
(03:52:13 PM) jpich: jtomasek, ccamacho: That patch merged earlier today :) https://review.openstack.org/#/c/363167/
cd
sudo apt-get update
sudo apt-get install openvpn easy-rsa
sudo touch /etc/openvpn/server.conf
sudo gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > server.conf
sudo mv server.conf /etc/openvpn/
Change "dh dh1024.pem" to "dh dh2048.pem"
Uncomment:
How to use the ADXL345 with a Raspberry Pi 3
Shoping list:
Solder: https://www.amazon.es/gp/product/B005I4QCB4 13.40
Solder support: https://www.amazon.es/gp/product/B001BMSBD4 6.30
Solder wire: https://www.amazon.es/gp/product/B000LFTN1G 5.72
Flux: https://www.amazon.es/gp/product/B00CIOVF8W 5.93
JUmper kit: https://www.amazon.es/gp/product/B0144HG2RE 6.99
Raspberry Pi 3: https://www.amazon.es/gp/product/B01CD5VC92 41.95
Deployment tips for puppet-tripleo
----------------------------------
This section will describe different ways of debugging puppet-tripleo changes.
Deploying puppet-tripleo using gerrit patches or source code repositories
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In some cases, dependencies should be merged first in order to test newer
patches when adding new features to THT. With the following procedure, the user
@ccamacho
ccamacho / Deploying tripleo master
Last active July 4, 2016 11:32
Deploying tripleo master
#Execute on the hypervisor:
sudo useradd stack
echo "stack:stack" | chpasswd
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
su - stack
sudo yum -y install epel-release
sudo yum -y install yum-plugin-priorities