Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#!/bin/bash
milestone=.0b3
pkg=$(basename $PWD _distro)
pushd ../$pkg
git fetch --all
git checkout .
tag=$(git describe --abbrev=0 --tags)
@hguemar
hguemar / juno.md
Last active August 29, 2015 14:21 — forked from alphacc/juno.md

RDO Juno EL6 Quickstart

Status

At this time few components of the Juno release have been recompiled for el6 and are available in repositories:

  • openstack-nova
  • openstack-ceilometer

Available packages can be browsed at the following url.

#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Directory where everything happens
DIR=~/work/virt-install
# The image downloaded from the http://fedoraproject.org/en/get-fedora#clouds site
guestfish -a Fedora-x86_64-20-20131211.1-sda.qcow2 -i --selinux <<_EOF_
# Load selinux policy
sh "/usr/sbin/load_policy -i"
# Create fedora user
sh "useradd -m fedora"
# Reset the fedora user password
sh "echo 'fedora:fedora' | chpasswd"
# Give the fedora users administrative rights
sh "echo 'fedora ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/fedora"
_EOF_