diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-20 15:40:04 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-20 15:40:04 +0000 |
commit | 40e2db3cf7d08b4870384bf690728df87edb6835 (patch) | |
tree | 15f48323f7e1d7acf23d6652e7cbc57a4711fb7c /documentation/rails-puppet-manager.page | |
parent | 813d1c9daf8e4cb479980f6327968b64890a36d7 (diff) | |
download | puppet-40e2db3cf7d08b4870384bf690728df87edb6835.tar.gz puppet-40e2db3cf7d08b4870384bf690728df87edb6835.tar.xz puppet-40e2db3cf7d08b4870384bf690728df87edb6835.zip |
All docs moved over now, and the real index page exists again
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1405 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'documentation/rails-puppet-manager.page')
-rw-r--r-- | documentation/rails-puppet-manager.page | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/documentation/rails-puppet-manager.page b/documentation/rails-puppet-manager.page deleted file mode 100644 index dda8295d5..000000000 --- a/documentation/rails-puppet-manager.page +++ /dev/null @@ -1,70 +0,0 @@ ---- -inMenu: true -title: PuppetShow ---- - -I have begun work on a simplistic web-based Puppet manager based on -[Rails](http://rubyonrails.org), called PuppetShow. It's in a very primitive -state -- including having no authentication, so use at your own risk -- but -it's a good proof of concept. - -To get it working, first check out the -[code](https://reductivelabs.com/svn/puppetshow). Then set up your apache -config to serve it. This is what mine looks like: - - <VirtualHost 192.168.0.101:80 192.168.0.102:80 192.168.0.3:80> - ServerAdmin luke@madstop.com - SetEnv RAILS_ENV development - ServerName puppet.madstop.com - ServerAlias puppet - DocumentRoot /var/lib/puppetshow/public - ErrorLog /var/lib/puppetshow/log/apache.log - - <Directory /var/lib/puppetshow/public/> - Options ExecCGI FollowSymLinks - AddHandler cgi-script .cgi - AllowOverride all - Order allow,deny - Allow from all - </Directory> - </VirtualHost> - -Now we just need to get the puppet internal stuff working. We could use -either ``rake`` or Puppet to do this, but for whatever reason I decided to use -Puppet. I've created a ``setup.pp`` file in the root of the tree, so you just -need to modify that as appropriate (in particular, I have a Facter lib that -sets ``$home`` for me, so you'll probably need to set that), then run: - - sudo puppet -v setup.pp - -At that point you should have a functional app. Like I said, there's no -navigation at all, so you need to know what's out there. The first thing you -need to do is start a daemon that this app can connect to. Pick your victim, -create a namespace auth file (defaults to -``/etc/puppet/namespaceauth.conf``): - - [fileserver] - allow *.madstop.com - - [puppetmaster] - allow *.madstop.com - - [pelementserver] - allow puppet.madstop.com - -Then start your client: - - puppetd -v --listen --no-client - -Here we're telling it to start the listening daemon but not to run the config. -You can obviously use whatever options you want, though. - -Now you should be able to just go to your app. At this point, you need to -know the name of the machine you want to connect to and the name of a type to -look at. Say you're connecting to culain (my workstation's name), and you -want to look at users; this would be your URL: -http://puppet.domain.com/remote/culain/user/list - -Replace as appropriate for your site. - -*$Id$* |