Skip to content

Instantly share code, notes, and snippets.

💭
Working on OpenStack Qinling

Gaëtan Trellu goldyfruit

💭
Working on OpenStack Qinling
Block or report user

Report or block goldyfruit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@goldyfruit
goldyfruit / pkg.yml
Last active Nov 13, 2019
[ansible] Check via the yum module and a registered value if a package is installed or not
View pkg.yml
---
- name: Ansible tests playbook
hosts: all
remote_user: root
tasks:
- name: Check if mariadb-libs-5.5.44-2.el7.centos.x86_64 package is installed
yum:
list=mariadb-libs-5.5*x86_64
register: pkg
View hello_qinling.py
def main(name="Qinling", region="Canada", **kwargs):
msg = "Hello {} from {} \o/".format(name, region)
return msg
View hello_qinling.py
def main(name="Qinling", **kwargs):
msg = "Hello {} \o/".format(name)
return msg
@goldyfruit
goldyfruit / ip_range.py
Last active Jun 2, 2019
Qinling - Example 3
View ip_range.py
import json
from IPy import IP
def details(cidr="192.168.0.0/24", **kwargs):
network = IP(cidr)
version = network.version()
iptype = network.iptype().lower()
reverse = network.reverseName()
prefix = network.prefixlen()
View hello_qinling_return.py
def main(**kwargs):
msg = "Hello Qinling \o/"
return msg
@goldyfruit
goldyfruit / hello_qinling.py
Last active May 28, 2019
Qinling - Example 1
View hello_qinling.py
def main(**kwargs):
print("Hello Qinling \o/")
View zynpass.c
/* ZyXEL prestige 660HW series password calculator by brainstorm
* Thanks to http://www.adslayuda.com/Zyxel650-9.html authors
*
* Example usage:
*
* Router:
* ======
*
* ATSE
* 0028D6DF1C03
View keybase.md

Keybase proof

I hereby claim:

  • I am goldyfruit on github.
  • I am goldyfruit (https://keybase.io/goldyfruit) on keybase.
  • I have a public key ASAN_QQz2Da2cjKdYAWjQnpMen0c9qlbEfGYszPEuA0xBQo

To claim this, I am signing this object:

@goldyfruit
goldyfruit / pcs-resources.yml
Created Aug 11, 2016
ansible-pacemaker resource creation
View pcs-resources.yml
- 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 / inidata.py
Created Mar 4, 2016
[ansible] Add lookup plugin to parse initdata with ini_file module
View inidata.py
# (c) 2016, Gaetan Trellu (goldyfruit) <gaetan.trellu@incloudus.com>
# (c) 2014, Pierre-Yves KERVIEL <pierreyves.kerviel@orange.com>
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
You can’t perform that action at this time.