How can i setup puppet on Django droplet?

May 22, 2016 482 views
Configuration Management Ubuntu

I've setup a Django on 14.04 (Ubuntu) droplet and installed puppetmaster and puppet packages. Both the master and agent are on the same droplet. I'm trying to perform the classic "hello world" test to make sure everything is working well but it doesn't seem to be working. Not quite sure how to start debugging this. I've read that setting up puppet require an apache server but this Django droplet come with nginx which I would prefer to keep. Could someone offer some advice, direction, or articles on how to set this up?


1 Answer


You should just be able to specify the Nginx document root index.html as a file target in your manifest, such as:

file { 'index.html':
  path    => '/usr/local/nginx/index.html',
  content => 'Hello World',

The path may vary, but provided Nginx is installed, that should be an appropriate method for getting a default page up via Puppet.


Joseph D. Marhee
Customer Success Engineer

Have another answer? Share your knowledge.