Skip to content

Instantly share code, notes, and snippets.

View resmo's full-sized avatar
:octocat:

René Moser resmo

:octocat:
View GitHub Profile
#!/usr/bin/python
import subprocess
import os
start_ref = "v2.4.0.0-1"
skip_list = [
'ec2_elb',
'ec2_elb_facts',
'ec2_elb_lb',
Abhijeet Kasurde (4):
spelling fixes (non-trivial, changing messages) (#25094)
Fix spelling mistakes (comments only) (#25564)
Add missing msg keyword in fail_json (#25635)
cloudstack: Use errortext from router in cs_router (#25634)
AlexanderStock (1):
Added Tag functionality to Volume,Template,FWRule,PF Rule,ISO,Snapshot (#23141)
Andrea Tartaglia (1):
@resmo
resmo / gist:9c95125ce3de41f1f0a66724cff10f5c
Created June 7, 2017 19:03
backports by resmo stable-2.3
$ git log [email protected] --name-status v2.3.0.0-0.1.rc1..HEAD | grep "^M"
M lib/ansible/modules/cloud/ovirt/ovirt_networks.py
M lib/ansible/modules/network/exoscale/exo_dns_record.py
M lib/ansible/modules/messaging/rabbitmq_queue.py
M lib/ansible/modules/packaging/os/pacman.py
M lib/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule.py
M lib/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule_member.py
@resmo
resmo / git-ansibull-cherry-pick
Last active December 9, 2016 18:42
cherry picking a commit in ansible/ansible devel to ansible-modules-extras
#!/bin/bash
# git-ansibull-cherry-pick <sha1>
set -e
(
cd /tmp
if [ -e ansible ]; then
cd ansible
git pull origin devel
else
one
two
three
four
five
six
---
- hosts: localhost
gather_facts: yes
tasks:
- name: extract new templates
local_action:
module: cs_template
name: my template
state: extracted
api_region: first region
- block:
- include: "{{ fname }}.yml"
when: fname != ""
- block:
- include: foo.yml
- include: bla.yml
when: fname == ""
$ cs listProjects --region ma-cloud
{
"count": 1,
"project": [
{
"account": "moserre",
"cpuavailable": "39",
"cpulimit": "40",
"cputotal": 1,
"displaytext": "web",
Using /home/resmo/Projects/swisstxt/ansible-swisstxt/ansible.cfg as config file
ERROR! Unexpected Exception: too many values to unpack
the full traceback was:
Traceback (most recent call last):
File "/home/resmo/Projects/resmo/ansible/bin/ansible-playbook", line 97, in <module>
exit_code = cli.run()
File "/home/resmo/Projects/resmo/ansible/lib/ansible/cli/playbook.py", line 132, in run
inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=self.options.inventory)
File "/home/resmo/Projects/resmo/ansible/lib/ansible/inventory/__init__.py", line 91, in __init__
$ cat hosts
foo
$ cat test.yml
---
- hosts: foo
connection: local
gather_facts: no