Skip to content

Instantly share code, notes, and snippets.

@steppat
Created February 22, 2019 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steppat/24557336887232b420050aba455fea64 to your computer and use it in GitHub Desktop.
Save steppat/24557336887232b420050aba455fea64 to your computer and use it in GitHub Desktop.
Simple Puppet Manifest PHP Installation Script
# execute 'apt-get update'
exec { 'apt-update': # exec resource named 'apt-update'
command => '/usr/bin/apt-get update' # command this resource will run
}
package { ['php7.2' ,'php7.2-mysql'] :
require => Exec['apt-update'],
ensure => installed,
}
exec { 'run-php7':
require => Package['php7.2'],
command => '/usr/bin/php -S 192.168.1.25:8888 -t /vagrant/src &'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment