From b4c2f958f6f26afae35c0095476972c90752a91d Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 24 May 2012 17:58:35 +1000 Subject: puppet: added basic Windows support This implements the bare minimum needed to get puppet up and running on our Windows machines as a scheduled task. Removed outdated README.windows.txt and added a few Windows-specific notes to README.txt. Added Windows bootstrap script. Tested with puppet 3.0.0rc2. One notable problem which has not yet been solved is that the majority of our Windows machines don't have any meaningful FQDN, and therefore won't be usable in nodes/private_nodes in the same way as our non-Windows hosts. Change-Id: Ifd3b8435eefaae642b1bc2ffea4fcfaa06660966 Reviewed-by: Kalle Lehtonen Reviewed-by: Jyri Tahtela Reviewed-by: Sergio Ahumada --- README.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index ebadb4a..d9bd6fd 100644 --- a/README.txt +++ b/README.txt @@ -14,10 +14,12 @@ puppet's domain-specific language. The basic setup on each test machine is like this: - - the test machine has a copy of this repo (usually at /var/qtqa/sysadmin) + - the test machine has a copy of this repo (usually at /var/qtqa/sysadmin, + or c:\qtqa\sysadmin on Windows) - - a script is run by a cron job on the test machine which updates the repo - and runs puppet (in one-shot mode, not as a daemon) + - a script is run by a cron job (unix) / scheduled task (Windows) on the + test machine which updates the repo and runs puppet (in one-shot mode, + not as a daemon) Getting the machine up and running to this point requires that at least git and puppet are installed, and a clone of this repo has been done. @@ -37,7 +39,15 @@ write up your own bootstrap script as you go :-) OTHER NOTES =========== -To temporarily disable the usage of puppet, touch /var/qtqa/sysadmin/puppet/disable_puppet +To temporarily disable the usage of puppet, touch: + + /var/qtqa/sysadmin/puppet/disable_puppet + c:\qtqa\sysadmin\puppet\disable_puppet Using this repository in conjuction with a puppet server probably won't work due to our usage of the `generate' puppet function in a few places. + +On Unix, puppet will log to the system log. + +On Windows, puppet will log to c:\qtqa\sysadmin\puppet\last_puppet_run.txt, +but this is considered a FIXME until some better solution is implemented. -- cgit v1.2.3