Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant reload #3

Closed
soderlind opened this issue Jun 14, 2013 · 0 comments
Closed

vagrant reload #3

soderlind opened this issue Jun 14, 2013 · 0 comments

Comments

@soderlind
Copy link

If I leave out 'clean-install' => truefrom the following Vagrantfile, vagrant reload wil fail, please see the error log

chef-wp-cli should check if WordPress is already installed

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
  config.vm.box = 'precise32'
  config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
  config.vm.provision :shell, :inline => "gem install chef --version 11.4.2 --no-rdoc --no-ri --conservative"
  config.vm.network :private_network, ip: "192.168.33.10"
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "512"]
  end

  config.vm.provision :chef_solo do |chef|
    chef.add_recipe "apache2"
    chef.add_recipe "apache2::mod_php5"
    chef.add_recipe "wpcli"
    chef.json = {
      'wpcli' => { 
        'installs' => {
          'wptest' => {
            'url' => 'mywptest.dev',
            'title' => 'my vagrant test',
            'theme' => 'twentytwelve', # active theme
            'clean-install' => true,
          },
        },
        'user' => 'vagrant',
        'group' => 'vagrant',
      },
      'mysql' => {
        'server_root_password'   => 'iloverandompasswordsbutthiswilldo',
        'server_repl_password'   => 'iloverandompasswordsbutthiswilldo',
        'server_debian_password' => 'iloverandompasswordsbutthiswilldo'
      },
      'apache' => {
        'user' => 'vagrant',
        'group' => 'vagrant',
      }    
    }  
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant