Created
February 22, 2019 19:20
-
-
Save steppat/24557336887232b420050aba455fea64 to your computer and use it in GitHub Desktop.
Simple Puppet Manifest PHP Installation Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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