Permalink
Browse files

We have a final project name -- The ForeMan

  • Loading branch information...
1 parent 152204a commit 1fe671cf7c0109fb7db755b40c214bd62e3f049d @ohadlevy committed Sep 9, 2009
View
@@ -1,8 +1,6 @@
-See wiki for instructions http://thetorque.org/wiki/torque
+See http://theforeman.org for additional information
-Some screenshots and other info can be found at:
-http://ohadlevy.github.com/gni/
for more info, contact us at ohadlevy@gmail.com (ohadlevy at #puppet), or pikelly@blueyonder.co.uk
Copyright (c) 2009 Ohad Levy and Paul Kelly
@@ -56,9 +56,9 @@ def externalNodes
def setBuild
host = Host.find params[:id]
if host.setBuild != false
- flash[:torque_notice] = "Enabled #{host.name} for installation boot away"
+ flash[:foreman_notice] = "Enabled #{host.name} for installation boot away"
else
- flash[:torque_error] = "Failed to enable #{host.name} for installation"
+ flash[:foreman_error] = "Failed to enable #{host.name} for installation"
end
redirect_to :back
end
@@ -151,8 +151,8 @@ def handle_vmware
"
end
- #returns the URL for Torque Built status (when a host has finished the OS instlalation)
- def torque_url(action = "built")
+ #returns the URL for Foreman Built status (when a host has finished the OS instlalation)
+ def foreman_url(action = "built")
url_for :only_path => false, :controller => "unattended", :action => action
end
View
@@ -88,7 +88,7 @@ def root_pass
# make sure we store an encrypted copy of the password in the database
# this password can be use as is in a unix system
def root_pass=(pass)
- p = pass =~ /^$1$torque$.*/ ? pass : pass.crypt("$1$torque$")
+ p = pass =~ /^$1$foreman$.*/ ? pass : pass.crypt("$1$foreman$")
write_attribute(:root_pass, p)
end
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
- <title><%= @title || "The Torque"%></title>
+ <title><%= @title || "The Foreman"%></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<%#<link rel="icon" type="image/gif" href="/images/favicon.gif"/> -%>
<%= stylesheet_link_tag "style" %>
@@ -11,12 +11,12 @@
<body>
<div id="header">
<div class="title">
- <center>The Torque</center>
+ <center>The Foreman</center>
</div>
<%= render :partial => "home/menu" -%>
</div>
- <%= content_tag('div', flash[:torque_error], :class => 'flash error') if flash[:torque_error] -%>
- <%= content_tag('div', flash[:torque_notice], :class => 'flash notice') if flash[:torque_notice] -%>
+ <%= content_tag('div', flash[:foreman_error], :class => 'flash error') if flash[:foreman_error] -%>
+ <%= content_tag('div', flash[:foreman_notice], :class => 'flash notice') if flash[:foreman_notice] -%>
<div id="content">
<%= yield -%>
</div>
@@ -17,6 +17,6 @@ logger "Starting finish script"
/opt/csw/bin/pkg-get -i CSWfacter CSWpuppet > /dev/null
-echo "Informing Torque that we are built"
-/opt/csw/bin/wget --no-check-certificate -O /dev/null <%= torque_url %>
+echo "Informing Foreman that we are built"
+/opt/csw/bin/wget --no-check-certificate -O /dev/null <%= foreman_url %>
exit 0
@@ -79,6 +79,6 @@ echo "Disabling various system services"
sync
<%= handle_vmware %>
# Inform the build system that we are done.
-echo "Informing Torque that we are built"
-wget -q -O /dev/null --no-check-certificate <%= torque_url %>
+echo "Informing Foreman that we are built"
+wget -q -O /dev/null --no-check-certificate <%= foreman_url %>
exit 0
@@ -35,4 +35,4 @@ d-i pkgsel/include string puppet lsb-release openssh-server
d-i finish-install/reboot_in_progress note
popularity-contest popularity-contest/participate boolean false
-d-i preseed/late_command string wget <%= torque_url("preseed_finish") %> -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh
+d-i preseed/late_command string wget <%= foreman_url("preseed_finish") %> -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh
@@ -3,4 +3,4 @@ cat > /etc/puppet/puppet.conf << EOF
EOF
/bin/touch /etc/puppet/namespaceauth.conf
/usr/sbin/puppetd --config /etc/puppet/puppet.conf -o --tags no_such_tag --server <%= @host.puppetmaster %> --no-daemonize
-wget -q -O /dev/null --no-check-certificate <%= torque_url %>
+wget -q -O /dev/null --no-check-certificate <%= foreman_url %>
@@ -5,7 +5,7 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
ActionController::Base.session = {
- :key => '_Torque_session',
+ :key => '_Foreman_session',
:secret => '4fe1a103699cf36976181cb4d343e6cb27d7904113c9a2113862c53b51f12357f413c996e820e6e544464242915d643d32b698a9679bbfe63f6eedfd9bf67961'
}
@@ -1,8 +1,8 @@
#! /usr/bin/ruby
-# a simple script which fetches external nodes from Torque
+# a simple script which fetches external nodes from Foreman
# you can basically use anything that knows how to get http data, e.g. wget/curl etc.
require 'net/http'
-Torque_host="localhost:3000"
-Net::HTTP.get_print URI.parse("http://#{Torque_host}/hosts/externalNodes?fqdn=#{ARGV[0]}")
+Foreman_host="localhost:3000"
+Net::HTTP.get_print URI.parse("http://#{Foreman_host}/hosts/externalNodes?fqdn=#{ARGV[0]}")
@@ -1,2 +1,2 @@
# this is the static installation directory for jumpstart
-# the idea is to provide the minimum static scripts that contact torque for actual installation instructions
+# the idea is to provide the minimum static scripts that contact foreman for actual installation instructions
@@ -1,11 +1,11 @@
#!/bin/sh
cd $SI_CONFIG_DIR
hostname=`hostname`
-# the servers that runs torque
-torque="torque"
+# the servers that runs foreman
+foreman="foreman"
# We load the finish script into the logs directory so as to leave a record
-$SI_CONFIG_DIR/curl http://$torque/unattended/jumpstart_finish > /a/var/sadm/system/logs/puppet.postinstall
+$SI_CONFIG_DIR/curl http://$foreman/unattended/jumpstart_finish > /a/var/sadm/system/logs/puppet.postinstall
# Copy the working nsswitch and resolv.conf into the new server's etc directory
cp /etc/nsswitch.conf /a/etc
cp /etc/resolv.conf /a/etc
@@ -10,7 +10,7 @@ do
echo "nameserver $i" >> /etc/resolv.conf
done
perl -p -i -e "s/hosts:.*/hosts: files dns/" /tmp/root/etc/nsswitch.conf
-# and then download our configuration from torque
-torque="torque"
-./curl http://$torque/unattended/jumpstart_profile > ${SI_PROFILE}
+# and then download our configuration from foreman
+foreman="foreman"
+./curl http://$foreman/unattended/jumpstart_profile > ${SI_PROFILE}
exit 0
@@ -1,11 +1,11 @@
# Author: Roberto Moral Denche (Telmo : telmox@gmail.com)
# Description: The tasks defined in this Rakefile will help you populate some of the
-# fiels in Torque with what is already present in your database from
+# fiels in Foreman with what is already present in your database from
# StoragedConfig.
namespace :puppet do
namespace :migrate do
- desc "Populates the host fields in Torque based on your StoredConfig DB"
+ desc "Populates the host fields in Foreman based on your StoredConfig DB"
task :populate_hosts => :environment do
counter = 0
Host.find_each do |host|

0 comments on commit 1fe671c

Please sign in to comment.