lsolesen / boa-vagrant Goto Github PK
View Code? Open in Web Editor NEWVagrant setup for a BOA stack (Barracuda-Octopus-Aegir) used for my own development
Vagrant setup for a BOA stack (Barracuda-Octopus-Aegir) used for my own development
The octopus user does not have access to the static directory, as the user is vagrant:vagrant. Trying to change that in recipe.rb does not seem to have effect.
The SSH-keys are not being created correctly. This happens because the BOA-user is not substituted correctly.
[2012-11-29T11:36:06+01:00] INFO: **\* Chef 10.14.2 ***
[2012-11-29T11:36:06+01:00] INFO: Setting the run_list to ["recipe[barracuda]"] from JSON
[2012-11-29T11:36:06+01:00] INFO: Run List is [recipe[barracuda]]
[2012-11-29T11:36:06+01:00] INFO: Run List expands to [barracuda]
[2012-11-29T11:36:06+01:00] INFO: Starting Chef Run for lucid64.hsd1.ca.comcast.net.
[2012-11-29T11:36:06+01:00] INFO: Running start handlers
[2012-11-29T11:36:06+01:00] INFO: Start handlers complete.
[2012-11-29T11:36:06+01:00] INFO: Processing remote_file[/tmp/BOA.sh] action create (barracuda::default line 3)
[2012-11-29T11:36:07+01:00] INFO: remote_file[/tmp/BOA.sh] updated
[2012-11-29T11:36:07+01:00] INFO: remote_file[/tmp/BOA.sh] mode changed to 755
[2012-11-29T11:36:07+01:00] INFO: Processing execute[/tmp/BOA.sh] action run (barracuda::default line 8)
[2012-11-29T11:36:09+01:00] INFO: execute[/tmp/BOA.sh] ran successfully
[2012-11-29T11:36:09+01:00] INFO: Processing execute[Run the BOA Installer o1] action run (barracuda::default line 12)
[2012-11-29T11:52:54+01:00] INFO: execute[Run the BOA Installer o1] ran successfully
[2012-11-29T11:52:54+01:00] INFO: Processing execute[Run the BOA Installer o2] action run (barracuda::default line 16)
[2012-11-29T12:11:38+01:00] INFO: execute[Run the BOA Installer o2] ran successfully
[2012-11-29T12:11:38+01:00] INFO: Processing execute[Run the BOA Installer o3] action run (barracuda::default line 20)
[2012-11-29T12:21:21+01:00] INFO: execute[Run the BOA Installer o3] ran successfully
[2012-11-29T12:21:21+01:00] INFO: Processing user[o1] action create (barracuda::default line 26)
[2012-11-29T12:21:21+01:00] INFO: user[o1] created
[2012-11-29T12:21:21+01:00] INFO: Processing directory[/data/disk/o1/.ssh] action create (barracuda::default line 32)
[2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] created directory /data/disk/o1/.ssh
[2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] owner changed to 1001
[2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] mode changed to 700
[2012-11-29T12:21:21+01:00] INFO: Processing execute[Add ssh key to user] action run (barracuda::default line 38)
#
# Error executing action `run` on resource 'execute[Add ssh key to user]'
## Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
STDOUT: Generating public/private rsa key pair.
Saving the key failed: /data/disk/o#{boa_user}/.ssh/id_rsa.
STDERR: open /data/disk/o#{boa_user}/.ssh/id_rsa failed: No such file or directory.
---- End output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
Ran ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa returned 1
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/barracuda/recipes/default.rb
37:
38: execute "Add ssh key to user" do
39: command 'ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa'
40: creates "/data/disk/o#{boa_user}/.ssh/id_rsa"
41: end
42:
Compiled Resource:
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/barracuda/recipes/default.rb:38:in `from_file'
execute("Add ssh key to user") do
creates "/data/disk/o1/.ssh/id_rsa"
retry_delay 2
cookbook_name :barracuda
retries 0
action "run"
returns 0
command "ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa"
recipe_name "default"
backup 5
end
[2012-11-29T12:21:22+01:00] ERROR: Running exception handlers
[2012-11-29T12:21:22+01:00] ERROR: Exception handlers complete
[2012-11-29T12:21:23+01:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-11-29T12:21:23+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Add ssh key to user](barracuda::default line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
STDOUT: Generating public/private rsa key pair.
Saving the key failed: /data/disk/o#{boa_user}/.ssh/id_rsa.
STDERR: open /data/disk/o#{boa_user}/.ssh/id_rsa failed: No such file or directory.
---- End output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
Ran ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Found ssh_known_hosts in the cookbook directory, but it contains no cookbook files. skipping
For some reason the o1-o3 are not created correctly when run as user=root. Might have to split barracuda and octopus install.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.