This file contains hidden or 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
#/etc/puppetlabs/puppet/modules/classroom/lib/facter/has_wordpress.rb | |
require 'net/http' | |
Facter.add('has_wordpress') do | |
setcode do | |
begin | |
http = Net::HTTP.new(Facter.value("ipaddress"), '80') | |
req = Net::HTTP::Get.new('/wp-login.php') | |
req['Content-Type'] = 'plain/html' | |
resp = http.request(req) |
This file contains hidden or 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
# $modulepath/profiles/manifests/blog.pp | |
class profiles::blog { | |
include mysql::server | |
include mysql::bindings | |
include apache | |
include apache::mod::php | |
include wordpress | |
} |
NewerOlder