Skip to content

Instantly share code, notes, and snippets.

Warning: Puppet.parse_config is deprecated; please use Faces API (which will handle settings and state management for you), or (less desirable) call Puppet.initialize_settings
Error: Could not call 'find' on 'facts': Failed to find facts from PuppetDB at build-server.domain.name:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A
def lookup(key, ...)
@some_magic_hash[key]
end
"nova::consoleauth":
"nova::consoleauth::enabled": true
nova:
"nova::rabbit_userid": openstack_rabbit_user
"nova::rpc_backend": nova.openstack.common.rpc.impl_kombu
"nova::rabbit_host": "192.168.242.10"
"nova::qpid_username": openstack_rabbit_user
"nova::qpid_password": openstack_rabbit_password
"nova::rabbit_password": openstack_rabbit_password
"nova::qpid_hostname": "192.168.242.10"
Error: Could not parse application options: "--certname CERTNAME": already defined in puppet
export build_server_ip=X.X.X.X;bash -c "$( curl -fsS https://raw.github.com/CiscoSystems/openstack-installer/install-scripts/setup.sh)"
#!/bin/bash
#
# script to build a two node environment and test.
#
set -e
build_dir="$WORKSPACE/$BUILD_ID"
mkdir -p $build_dir
$dist = $::operatingsystem ? {
/(CentOS|RedHat|Scientific|SLC)/ => 'epel',
'Fedora' => 'fedora',
}
diff --git a/lib/puppet/provider/keystone_user_role/keystone.rb b/lib/puppet/provider/keystone_user_role/keystone.r
index ac46d54..45cb6fc 100644
--- a/lib/puppet/provider/keystone_user_role/keystone.rb
+++ b/lib/puppet/provider/keystone_user_role/keystone.rb
@@ -50,7 +50,7 @@ Puppet::Type.type(:keystone_user_role).provide(
@user_hash ||= {}
@tenant_hash[tenant] = @tenant_hash[tenant] || get_tenants[tenant]
[
- get_users(@tenant_hash[tenant])[user],
+ get_user(@tenant_hash[tenant], user),
diff --git a/lib/puppet/indirector/node/scenario.rb b/lib/puppet/indirector/node/scenario.rb
index 039d8b4..5874bdf 100644
--- a/lib/puppet/indirector/node/scenario.rb
+++ b/lib/puppet/indirector/node/scenario.rb
@@ -154,7 +154,14 @@ This file maps nodes to the roles that they should be assigned.
unless File.exists?(role_mapper)
raise(Exception, "Role mapping file: #{role_mapper} should exist")
end
- YAML.load_file(role_mapper)[name]
+ role_mappings = YAML.load_file(role_mapper)