Report this

What is the reason for this report?

How can i setup puppet on Django droplet?

Posted on May 22, 2016

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?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

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.

Best,

Joseph D. Marhee Customer Success Engineer https://digitalocean.com

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.