Untitled

From Diminutive Mockingbird, 7 Years ago, written in Plain Text, viewed 849 times.
URL https://p.gaa.st/view/50719708 Embed
Download Paste or View Raw
  1. class puppet_master
  2. {
  3.         # https repo requires apt-transport-https package already
  4.         # requested in a long generic package list elsewhere.
  5.         apt::source { "passenger":
  6.                 comment  => "Passenger (Ruby/Puppet)",
  7.                 location => "https://oss-binaries.phusionpassenger.com/apt/passenger",
  8.                 release  => $lsbdistcodename,
  9.                 repos    => "main",
  10.                 # Only accept packages if they have "passenger" in the name.
  11.                 pin      => {
  12.                         origin   => "oss-binaries.phusionpassenger.com",
  13.                         priority => "901",
  14.                         packages => "*passenger*",
  15.                 },
  16.                 key      => {
  17.                         id     => "16378A33A6EF16762922526E561F9B9CAC40B2F7",
  18.                         server => "pgp.mit.edu",
  19.                 },
  20.                 include  => {
  21.                         src => false,
  22.                         deb => true,
  23.                 },
  24.         }
  25.  
  26.         package { ["libnginx-mod-http-passenger", "passenger"]:
  27.                 ensure => installed,
  28.                 # Forgot to do this in time: Add a dependency to the repo
  29.                 # above to avoid accidentally installing the passenger package
  30.                 # from proper Debian first.
  31.         }
  32.  
  33.         # You don't want the stand-alone daemon to occupy 8140/tcp anymore.
  34.         augeas {
  35.                 "puppetmaster-start-nope":
  36.                 context => "/files/etc/default/puppet-master",
  37.                 changes => "set START no";
  38.         }
  39.  
  40.         class { "::web":
  41.                 sites => [
  42.                         "puppet-master",
  43.                 ],
  44.                 # Really should be the default..
  45.                 php => false,
  46.         }
  47. }
  48.  

Reply to "Untitled"

Here you can reply to the paste above