Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
cd /tmp
wget http://openstack-repo.cisco.com/openstack/APT-GPG-KEY-Cisco
cat APT-GPG-KEY-Cisco|apt-key add -
cat > /etc/apt/sources.list.d/cisco-openstack-mirror_havana.list<<EOF
# cisco-openstack-mirror_havana
deb http://openstack-repo.cisco.com/openstack/cisco havana-proposed main
deb-src http://openstack-repo.cisco.com/openstack/cisco havana-proposed main
EOF
apt-get update
locate package ceilometer-alarm-evaluator
Error: /Stage[main]/Ceilometer::Alarm::Notifier/Package[ceilometer-alarm-evaluator]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-alarm-evaluator' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package ceilometer-alarm-evaluator
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-alarm-notifier' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
2014-03-05 09:17:59.096 62889 TRACE keystone.common.environment.eventlet_server
2014-03-05 09:18:00.938 63477 INFO keystone.common.environment [-] Environment configured as: eventlet
2014-03-05 09:18:02.717 63477 INFO keystone.common.environment.eventlet_server [-] Starting /usr/bin/keystone-all on 0.0.0.0:35357
2014-03-05 09:18:02.723 63477 INFO keystone.common.environment.eventlet_server [-] Starting /usr/bin/keystone-all on 0.0.0.0:5000
2014-03-05 09:18:59.094 63477 ERROR keystone.common.environment.eventlet_server [-] Server error
2014-03-05 09:18:59.094 63477 TRACE keystone.common.environment.eventlet_server Traceback (most recent call last):
2014-03-05 09:18:59.094 63477 TRACE keystone.common.environment.eventlet_server File "/usr/lib/python2.7/dist-packages/keystone/common/environment/eventlet_server.py", line 110, in _run
2014-03-05 09:18:59.094 63477 TRACE keystone.common.environment.eventlet_server log=logging.WritableLogger(log))
2014-03-05 09:18:59.094 63477 TRACE keystone.common.environmen
$ keystone --debug role-list
REQ: curl -i -X POST https://192.168.255.207:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"tenantName": "openstack", "passwordCredentials": {"username": "admin", "password": "Cisco123"}}}
Authorization Failed: <attribute 'message' of 'exceptions.BaseException' objects> (HTTP Unable to establish connection to https://192.168.255.207:5000/v2.0/tokens)
$ keystone --debug --insecure role-list
REQ: curl -i -X POST https://192.168.255.207:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"tenantName": "openstack", "passwordCredentials": {"username": "admin", "password": "Cisco123"}}}
# The base endpoint URLs for keystone that are advertised to clients
# (NOTE: this does NOT affect how keystone listens for connections)
# public_endpoint = http://localhost:%(public_port)s/
public_endpoint = https://192.168.255.207:5000/v2.0/
# admin_endpoint = http://localhost:%(admin_port)s/
admin_endpoint = https://192.168.255.207:35357/v2.0/
[ssl]
enable = True
certfile = /etc/keystone/ssl/certs/keystone.pem
# ls -lart /etc/keystone/ssl/*
/etc/keystone/ssl/private:
total 16
drwxrwxr-x 4 keystone keystone 4096 Mar 5 13:27 ..
-rw-r----- 1 keystone keystone 1679 Mar 5 13:27 signing_key.pem
drwxr-x--- 2 keystone keystone 4096 Mar 5 14:41 .
-rw-r----- 1 keystone keystone 887 Mar 5 14:41 keystonekey.pem
/etc/keystone/ssl/certs:
total 72
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install postgresql-unknown' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package postgresql-unknown
Error: /Stage[main]/Postgresql::Server/Package[postgresql-server]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install postgresql-unknown' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package postgresql-unknown
#!/bin/bash
wget http://openstack-repo.cisco.com/openstack/APT-GPG-KEY-Cisco
cat APT-GPG-KEY-Cisco|apt-key add -
cat > /etc/apt/sources.list.d/cisco-openstack-mirror_icehouse.list<<EOF
# cisco-openstack-mirror_icehouse
deb http://openstack-repo.cisco.com/openstack/cisco icehouse-proposed main
deb-src http://openstack-repo.cisco.com/openstack/cisco icehouse-proposed main
EOF
apt-get update
apt-get install puppet -y
[prad@ubuntu manifests{master}]$ irb
irb(main):001:0> require 'json'
LoadError: no such file to load -- json
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>
[prad@ubuntu manifests{master}]$ sudo apt-get install ruby-json
diff --git a/manifests/profiles/base.pp b/manifests/profiles/base.pp
index f965c5a..3389e3d 100644
--- a/manifests/profiles/base.pp
+++ b/manifests/profiles/base.pp
@@ -19,4 +19,8 @@ class coi::profiles::base(
# that it should be applied everywhere
class { "naginator::base_target": }
+ # puppetlabs-mongo has a dep on ruby's json lib
+ package { 'ruby-json':