我想知道是否有人试图自动部署wordpress和puphpet。 我不熟悉puphpet,但我知道它使用hiera.yaml文件以及manifets和modules文件夹。我尝试一些简单的puphpet在Ubuntu服务器上安装wordpress
我说这config.yaml文件,并从vagrant press
wordpress: install: '1'
它看起来像我可能需要的东西添加到主manifest.pp文件puphpet产生进口WordPress的模块。如果有人尝试过这样的事情,我将不胜感激任何建议。或者只是使用yeoman而不是更好?
更新
我在我加入这个底部形态(wordpress vagrant box)的manifest.pp文件里加入到config.yaml文件
wordpress: install: '1'
然后,它似乎工作:
# Begin wordpess if $wordpress_values == undef { $wordpress_values = hiera('wordpress', false) if hash_key_equals($wordpress_values, 'install', 1) { # Download WordPress exec {"download_wordpress": command => "wget http://wordpress.org/latest.tar.gz", cwd => "/tmp", creates => "/tmp/latest.tar.gz", path => ["/usr/bin", "/bin", "/usr/local/bin"], unless => "test -f /var/www/index.php", } # Extract WordPress exec {"extract_wordpress": command => "tar xzf /tmp/latest.tar.gz", cwd => "/tmp", creates => "/tmp/wordpress", path => ["/usr/bin", "/usr/local/bin", "/bin"], require => Exec["download_wordpress"], unless => "test -f /var/www/index.php", } # Install WordPress exec {"install_wordpress": command => "cp -r /tmp/wordpress/* /var/www/wordpress", cwd => "/tmp", path => ["/usr/bin", "/usr/local/bin", "/bin", "/usr/local/sbin", "/usr/sbin", "/sbin"], require => Exec["extract_wordpress"], unless => "test -f /home/www/index.php", } } }
不应该''VagrantPress'旋转一台机器与工作的Wordpress原样?你有什么理由修改任何东西吗? –
我希望能够灵活地安装除了WordPress以外的其他内容管理系统,以及不同版本的Ubuntu,而不是VagrantPress提供的那些内容管理系统。 –