Change vagrant start command from vagrant up to vagrant up --provosion, new vagrant version does not provision by default, after a halt apache wont restart automagically.
This commit is contained in:
Benjamin Sternthal 2014-02-28 16:26:21 -08:00
Родитель 8345d68817
Коммит 626278dc4b
2 изменённых файлов: 30 добавлений и 29 удалений

Просмотреть файл

@ -175,7 +175,7 @@ Start Your Machine
directory that contains the Vagrantfile. ::
~$ cd bedrock
~bedrock-legacy/bedrock$ vagrant up
~bedrock-legacy/bedrock$ vagrant up --provision
.. note::
The first time you run vagrant a VM image will be downloaded
@ -253,12 +253,13 @@ Tips & Tricks
Start ::
~$ vagrant up
~$ vagrant up --provision
Stop (vagrant is memory intensive - so if you are not using it best to stop it)::
~$ vagrant halt
Troubleshooting
---------------------
Find us on irc in #webprod

Просмотреть файл

@ -6,64 +6,64 @@ class nodejs {
package {
["python", "g++", "make"]:
ensure => installed,
require => Exec['update_apt']
}
require => Exec['update_apt']
}
file {'/src':
ensure => directory,
mode => 0644,
}
}
exec { "nodejs-download":
command => "wget -N http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz",
cwd => "/src/",
command => "wget -N http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz",
cwd => "/src/",
timeout => 3600,
unless => 'test -d /usr/local/bin/node',
unless => 'test -d /usr/local/bin/node',
require => [
File['/src'],
];
}
];
}
exec { "nodejs-extract":
command => "tar xzvf node-v0.10.13.tar.gz",
cwd => "/src/",
unless => 'test -d /usr/local/bin/node',
command => "tar xzvf node-v0.10.26.tar.gz",
cwd => "/src/",
unless => 'test -d /usr/local/bin/node',
require => [
File['/src'],
Exec['nodejs-download']
];
}
];
}
exec { "nodejs-configure":
command => "sudo ./configure",
cwd => "/src/node-v0.10.13/",
unless => 'test -d /usr/local/bin/node',
cwd => "/src/node-v0.10.26/",
unless => 'test -d /usr/local/bin/node',
require => [
File['/src'],
Exec['nodejs-download'],
Exec['nodejs-extract']
];
}
Exec['nodejs-extract']
];
}
exec { "nodejs-install":
command => "sudo make install",
cwd => "/src/node-v0.10.13/",
cwd => "/src/node-v0.10.26/",
timeout => 3600,
unless => 'test -d /usr/local/bin/node',
unless => 'test -d /usr/local/bin/node',
require => [
File['/src'],
Exec['nodejs-download'],
Exec['nodejs-extract'],
Exec['nodejs-configure']
];
}
];
}
#Install Less
exec { "less-install":
command => 'npm -g install less',
unless => 'test -d /usr/local/bin/lessc',
require => Exec['nodejs-install']
}
require => Exec['nodejs-install']
}
}