From 0749c44d42a1e68c5a661e4c6a2111ae7ae98aa1 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 23 Aug 2012 15:00:16 +1000 Subject: Added an interactively configurable external node classifier Prior to this change, the type of host to be managed was based on the hostname, as per default puppet behavior. This required adding various patterns into a private overlay repository (private_nodes module), and naming hosts according to those patterns. The new setup uses a simple configuration file which can be interactively configured at bootstrap time, hopefully making it much easier to get started with this repository. This also reduces the usage of the private overlay repository (which should eventually be eliminated). Change-Id: Ide4f1d9360a19b16b3dcaedf993951725932a011 Reviewed-by: Sergio Ahumada Reviewed-by: Toby Tomkins --- bootstrap/centos5_bootstrap_x86_64.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bootstrap/centos5_bootstrap_x86_64.sh') diff --git a/bootstrap/centos5_bootstrap_x86_64.sh b/bootstrap/centos5_bootstrap_x86_64.sh index f88c747..f0cc2cf 100755 --- a/bootstrap/centos5_bootstrap_x86_64.sh +++ b/bootstrap/centos5_bootstrap_x86_64.sh @@ -50,11 +50,12 @@ if ! test -d /var/qtqa/sysadmin; then git clone "$REPO" /var/qtqa/sysadmin fi +echo "Configuring this node..." +/var/qtqa/sysadmin/puppet/nodecfg.pl -interactive + # Run puppet once. echo "Running puppet..." /var/qtqa/sysadmin/puppet/sync_and_run.pl set +x echo 'All done :-)' -echo 'If this host already has an entry in manifests/nodes.pp, nothing needs to be done...' -echo "Otherwise, puppet is ready to go but will not do anything until you add an entry for $(facter fqdn) to manifests/nodes.pp" -- cgit v1.2.3