Skip to content

Instantly share code, notes, and snippets.

View Spredzy's full-sized avatar

Yanis Guenane Spredzy

  • eNovance from RedHat from IBM
  • Bordeaux, France
View GitHub Profile
@Spredzy
Spredzy / step1.yml
Last active June 14, 2017 11:42
step1.yml
# Initial Step:
#
# Schedule a new job giving a specific topic and specifying the remote CI.
# The return of this action contains all the data associated with the job,
# we hence register those data for later consumptions
#
- hosts: localhost
tasks:
- name: Schedule a new job
dci_job:
diff --git a/cli/__init__.py b/cli/__init__.py
index ce51245..fea8c0a 100644
--- a/cli/__init__.py
+++ b/cli/__init__.py
@@ -146,7 +146,7 @@ class CLI(with_metaclass(ABCMeta, object)):
Actually runs a child defined method using the execute_<action> pattern
"""
fn = getattr(self, "execute_%s" % self.action)
- fn()
+ return fn()
---
- hosts: myhost
vars:
dci-status: pre-run
tasks:
- name: IRC notification
irc:
- name: Email Notificiation
email:
@Spredzy
Spredzy / run.sh
Last active August 25, 2016 14:49
#!/bin/bash
stack_name=$1
certification_id=$2
if [[ -z "${certification_id}" ]]; then
echo "Usage: run.sh stack_name certification_id" >2
exit 1
fi
# TODO (spredzy): Install redhat-certification packages
@Spredzy
Spredzy / README.md
Last active August 29, 2015 14:27
Mistral Readme

For now there aren't supported packages for Mistral.

Instructions for building the rpm on the trunk:

  1. Clone mistral repo to your machine: git clone https://github.com/openstack/mistral.git
  2. In the mistral repo run the command: python ./setup.py bdist_rpm
#
# Copyright 2014 eNovance SAS <licensing@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@Spredzy
Spredzy / gist:e9dbaccc14fba45d034b
Created June 4, 2015 20:14
Getting started with a module [without cherry-pick]
[root@node01 openstack]#
[root@node01 openstack]# git clone https://github.com/Spredzy/puppet-barbican-example.git
Cloning into 'puppet-barbican-example'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
[root@node01 openstack]# cookiecutter https://github.com/enovance/cookiecutter-openstack-puppet-modules
Cloning into 'cookiecutter-openstack-puppet-modules'...
remote: Counting objects: 139, done.
remote: Total 139 (delta 0), reused 0 (delta 0), pack-reused 139
@Spredzy
Spredzy / gist:1724c547b78ebfc13490
Created June 4, 2015 20:12
Getting started with a module [with cherry-pick]
[root@node01 openstack]#
[root@node01 openstack]# git clone https://github.com/Spredzy/puppet-barbican-example.git
Cloning into 'puppet-barbican-example'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
[root@node01 openstack]# cookiecutter https://github.com/enovance/cookiecutter-openstack-puppet-modules
Cloning into 'cookiecutter-openstack-puppet-modules'...
remote: Counting objects: 139, done.
remote: Total 139 (delta 0), reused 0 (delta 0), pack-reused 139
@Spredzy
Spredzy / puppet.spec
Created September 23, 2014 00:34
puppet.spec
# Augeas and SELinux requirements may be disabled at build time by passing
# --without augeas and/or --without selinux to rpmbuild or mock
# Fedora 17 ships with ruby 1.9, RHEL 7 with ruby 2.0, which use vendorlibdir instead
# of sitelibdir. Adjust our target if installing on f17 or rhel7.
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?amzn} >= 1
%global puppet_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
%else
%global puppet_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
%endif
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
@Spredzy
Spredzy / lamp
Last active August 29, 2015 14:01
profile model
What would you recommend ?
class profile::lamp {
include ::apache
include ::apache::mod::php
include ::mysql::server
include ::mysql::bindings
include ::php
}