Skip to content

Instantly share code, notes, and snippets.

@domcleal
domcleal / gist:4738376
Created February 8, 2013 11:38
kickstart-default
install
<%= @mediapath %>
lang en_GB.UTF-8
selinux --permissive
keyboard uk
skipx
network --bootproto <%= @static ? "static" : "dhcp" %> --hostname <%= @host %>
rootpw --iscrypted <%= root_pass %>
firewall <%= (@host.os.major.to_i > 5) ? "--service=ssh" : "--ssh" %>
authconfig --useshadow --enablemd5
(* newsrc *)
module Newsrc =
autoload xfm
let colon = del /:[ \t]*/ ": "
let dash = Util.del_str "-"
let comma = del /,[ \t]*/ ","
let eol = Util.eol
@domcleal
domcleal / Foreman ENC config
Created April 18, 2013 13:14
foreman-installer + puppetdb
classes:
"puppetdb::server":
listen_address: "0.0.0.0"
"fmnet::puppetdb":
"puppetdb::master::config":
manage_storeconfigs: false
restart_puppet: false
foreman_installer:
answers: /etc/foreman-installer/answers-foreman.fm.example.net.yaml
@domcleal
domcleal / 1.2.0-RC1_release_notes.md
Last active December 17, 2015 06:39
Foreman 1.2 release notes

Release candidate notes for 1.2.0-RC1

Unavailable features in RPMs

Due to time constraints and the major reworking of the RPM packages to use Software Collections (SCL), some features are unavailable in RC1. They will be made available later in the RC cycle:

  • Passenger in RPMs: under review due to co-locating SCL Foreman and non-SCL Puppet within the same Apache instance
  • MySQL support in RPMs: the required MySQL gems haven't been built for the SCL yet
  • Only EL6 packages available, EL5 and Fedora to follow
diff --git a/spec/unit/macaddress_spec.rb b/spec/unit/macaddress_spec.rb
index 638ef2a..d219dfe 100755
--- a/spec/unit/macaddress_spec.rb
+++ b/spec/unit/macaddress_spec.rb
@@ -49,6 +49,14 @@ describe "macaddress fact" do
proc { Facter.value(:macaddress) }.should_not raise_error
Facter.value(:macaddress).should be_nil
end
+
+ # when ifconfig isn't installed, nil is returned which should be handled gracefully without any

puppet-configure

puppet-configure is a library for writing Puppet-based installers.

It's essentially a wrapper around puppet apply that supports command line and interactive configuration of parameters, answers files, logging, password inputs and more. Running apply by itself is sufficient for users familiar with Puppet, but this library provides a more polished UI for other users.

One of the key design goals is to reuse existing Puppet modules seamlessly and to not require any non-standard extensions (functions, layout or metadata) to manifests.

Key features

### Next part of the file is managed by a different template ###
## Module: 'puppet'
## Template source: 'MODULES/puppet/templates/server/config.ru.erb'
# a config.ru, for use with every rack-compatible webserver.
# SSL needs to be handled outside this, though.
# if puppet is not in your RUBYLIB:
# $LOAD_PATH.unshift('/opt/puppet/lib')
$0 = "master"
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name foreman_discovery
%define rubyabi 1.9.1
%global foreman_bundlerd_dir /usr/share/foreman/bundler.d
# set and uncomment all three to set alpha tag
%global alphatag rc4
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos-64-x64-kvm-2"
require 'spec_helper'
require 'puppet/reports'
require 'webmock/rspec'
require 'ostruct'
class ErbStruct < OpenStruct
def initialize(values)
values.each { |k,v| instance_variable_set("@#{k}", v) }
super
end