This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RSpec::Puppet | |
module GenericDynamicMatchers | |
def method_missing(method, *args, &block) | |
return RSpec::Puppet::ManifestMatchers::CreateGeneric.new("contain_#{args[0]}", args[1], &block) if method == :contain | |
super | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rake', '~>10.1.0' | |
gem 'librarian-puppet-simple', | |
:git => 'git://github.com/bodepd/librarian-puppet-simple.git' | |
group :development, :test do | |
gem 'mustache', '0.99.8' | |
gem 'json_pure', '2.0.1' | |
gem 'safe_yaml', '~> 1.0.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Zuul inline | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Enable inline Zuul status | |
// @author You | |
// @match https://review.openstack.org/ | |
// @grant GM_addStyle | |
// ==/UserScript== | |
/* jshint -W097 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: =?UTF-8?q?Mathieu=20Gagn=C3=A9?= <mgagne@iweb.com> | |
Date: Mon, 11 Apr 2016 22:09:41 -0400 | |
Subject: Add ability to restrict image to specific flavor classes | |
--- | |
nova/compute/api.py | 28 ++++++++++ | |
nova/tests/unit/compute/test_compute.py | 88 +++++++++++++++++++++++++++++++ | |
2 files changed, 116 insertions(+) | |
diff --git a/nova/compute/api.py b/nova/compute/api.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from oslo_config import cfg | |
from oslo_log import log as logging | |
from nova import db | |
from nova.scheduler import filters | |
isolated_opts = [ | |
cfg.ListOpt('isolated_image_os_type', | |
default=[], | |
help='Image os_type to run on isolated host'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: default | |
security_group_rules: | |
- direction: ingress | |
ethertype: IPv4 | |
remote_ip_prefix: '0.0.0.0/0' | |
- direction: ingress | |
ethertype: IPv6 | |
remote_ip_prefix: '::/0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./tools/trigger-job.py --job periodic-foobar-proposal --project dev/foobar --pipeline periodic --url https://zuul.example.org/p --logpath /dev/null --newrev refs/heads/master --refname refs/heads/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup_message off | |
vbell on | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}' | |
caption string "%?%F%{= Bk}%? %C%A %D %d-%m-%Y %{= kB} %t%= %?%F%{= Bk}%:%{= wk}%? %n " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import ConfigParser | |
import argparse | |
import os | |
import sys | |
import yaml | |
import yamlordereddictloader | |
import zuul.lib.connections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
disable_root: false | |
chpasswd: { expire: false } | |
user: root | |
users: | |
- name: root | |
gecos: root | |
inactive: false | |
system: true | |
lock_passwd: false |