megamsys / chef-repo Goto Github PK
View Code? Open in Web Editor NEWChef cookbooks used by megam
Home Page: https://www.megam.io
Chef cookbooks used by megam
Home Page: https://www.megam.io
When a
apt-get update #is performed
an error is received in the current OpenERP image complaining about the "public key"
Now we move from separate builders to combined buildpacks repository.
Support for
froxlor
webmin
centora
openvpn
magneto
Keeping cookbooks perpertually upgradable is good, but we need to baseline and release incremental fixes.
What is our design and how will this approach work with our agent gulpd.?
Support for the following in marketplace.
vestacp
ajenti
ispconfig
webin
sentori
foxlorr
Undefined node attribute or method push' on
node'. To set an attribute, use `push=value' instead.
/var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:24:in from_file' /var/lib/megam/gulp/chef-repo/cookbooks/megam_route/definitions/route.rb:47:in
block in from_file'
/var/lib/megam/gulp/chef-repo/cookbooks/megam_route/recipes/default.rb:9:in from_file' /var/lib/megam/gulp/chef-repo/cookbooks/megam_run/recipes/default.rb:39:in
from_file'
/var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:
17: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: # See the License for the specific language governing permissions and
19: # limitations under the License.
20: #
21:
22: rsyslog_inputs=[]
23: rsyslog_inputs = node.default['rsyslog']['logs']
24>> rsyslog_inputs.push("/var/log/rabbitmq/rabbit@#{hostname
}.log", "/var/log/megam/megamgulpd/megamgulpd.log")
25: node.override['rsyslog']['logs']= rsyslog_inputs
26:
27: node.set['heka']['logs']["#{node['megam']['deps']['component']['name']}"] = ["/var/log/rabbitmq/rabbit@#{hostname
}.log", "/var/log/megam/megamgulpd/megamgulpd.log"]
28:
29: dir = "rabbitmq"
30:
31: include_recipe "erlang"
32:
33: #include_recipe "megam_ganglia::rabbit"
Running handlers:
[2016-01-22T14:04:32+01:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-22T14:04:32+01:00] ERROR: Exception handlers complete
[2016-01-22T14:04:32+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 2.730853115 seconds
[2016-01-22T14:04:32+01:00] ERROR: Undefined node attribute or method push' on
node'. To set an attribute, use `push=value' instead.
[2016-01-22T14:04:32+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
have a release for chef-repo
<toscatype>
megam_<toscatype>
uninitialized constant Chef::Provider::MysqlService::Sysvinit
/var/lib/megam/gulp/chef-repo/cookbooks/mysql/libraries/z_provider_mapping.rb:6:in `<top (required)>'
/var/lib/megam/gulp/chef-repo/cookbooks/mysql/libraries/z_provider_mapping.rb:
1: # provider mappings for Chef 11
2:
3: #########
4: # service
5: #########
6>> Chef::Platform.set platform: :amazon, resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
7: Chef::Platform.set platform: :centos, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
8: Chef::Platform.set platform: :centos, version: '>= 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
9: Chef::Platform.set platform: :debian, resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
10: Chef::Platform.set platform: :fedora, version: '< 19', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
11: Chef::Platform.set platform: :fedora, version: '>= 19', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
12: Chef::Platform.set platform: :omnios, resource: :mysql_service, provider: Chef::Provider::MysqlService::Smf
13: Chef::Platform.set platform: :redhat, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
14: Chef::Platform.set platform: :redhat, version: '>= 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
15: Chef::Platform.set platform: :scientific, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
Running handlers:
[2016-01-22T08:48:02-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-22T08:48:02-05:00] ERROR: Exception handlers complete
[2016-01-22T08:48:02-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.640491442 seconds
[2016-01-22T08:48:02-05:00] ERROR: uninitialized constant Chef::Provider::MysqlService::Sysvinit
[2016-01-22T08:48:02-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
execute[install couchdb] ran successfully\n\n
execute wget http://ftp.fau.de/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz\x1b[0m * execute[tar xvzf apache-couchdb-] action run[2016-03-18T13:12:09+00:00]
INFO: Processing execute[tar xvzf apache-couchdb-] action run (megam_couchdb::default line 35)\n[2016-03-18T13:12:09+00:00]
INFO: execute[tar xvzf apache-couchdb-] ran successfully\n\n execute tar xvzf apache-couchdb-\x1b[0m * bash[make] action run[2016-03-18T13:12:09+00:00]
\x1b[31mError executing action run
on resource 'bash[make]' =============================================================================
Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '2' ---- Begin output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ---- STDOUT: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept Ision compatibility... detected Erlang version: 0.0.0... STDERR: ./configure: line 18138: fg: no job control configure: error: The installed Erlang version must be >= R14B (erts-5.8.1) and =< 17 (erts-6.0) major_version does not match make: *** No rule to make target `install'. Stop. ---- End output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ---- Ran "bash" "/tmp/chef-script20160318-1335-16jbd88" returned 2 Resource Declaration: ---------------------
37: bash 'make' do
38: code <<-EOH
39: cd apache-couchdb-*
40: ./configure && make
41: make install
42: EOH
43: end
44: Compiled Resource: ------------------
code " cd apache-couchdb-\n
./configure && make\n
make install\n"
interpreter "bash"
declared_type :bash
cookbook_name :megam_couchdb recipe_name "default" end [2016-03-18T13:12:21+00:00] INFO: Running queued delayed notifications before re-raising exception\nRunning handlers:\x1b[0m\n[2016-03-18T13:12:21+00:00] ERROR: Running exception handlers\nRunning handlers complete[2016-03-18T13:12:21+00:00] ERROR: Exception handlers complete\n[2016-03-18T13:12:21+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\nChef Client failed. 14 resources updated in 772.983609777 seconds\x1b[0m\n[2016-03-18T13:12:21+00:00] ERROR: bash[make](megam_couchdb::default line
37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'\n---- Begin output of
"bash" "/tmp/chef-script20160318-1335-16jbd88" ----\nSTDOUT: checking for a BSD-compatible install... /usr/bin/install -c\nchecking whether build environment is sane... yes\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\nchecking for gawk... gawk\nchecking whether make sets $(MAKE)... yes\nchecking how to create a ustar tar archive... gnutar\nchecking for style of include used by make... GNU\nchecking -prototypes -Wwrite-strings \nchecking ICU_CXXFLAGS... -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x \nchecking ICU_LIBS... -Wl,-Bsymbolic-functions -Wl,-z,relro -ldl -lm -L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata -ldl -lm \nchecking for curl-config... /usr/bin/curl-config\nchecking for curl (7.35.0) >= 7.18.0... yes\nchecking Erlang version compatibility... detected Erlang version: 0.0.0...\nSTDERR: ./configure: line 18138: fg: no job control\nconfigure: error: The installed Erlang version must be >= R14B (erts-5.8.1) and =< 17 (erts-6.0) major_version does not match\nmake: ** No rule to make target `install'. Stop.\n---- End output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ----\nRan "bash" "/tmp/chef-script20160318-1335-16jbd88" returned 2\n[2016-03-18T13:12:21+00:00]
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\n chefsolo run ended failed.\nexit status 1"
time="2016-03-18T13:12:21Z" level=error msg="Unable to stateup box : exit status 1"
time="2016-03-18T13:12:21Z" level=debug msg="contrasting.megambox.com_log:{18 Mar 16 13:12 UTC exit status 1 gulp overcompensation COM7873979593084011110}"
node['logging']['input_files']=['1', '2']
input_push = node['logging']['input_files'].push('3')
node.set['logging']['input_files'] = input_push
mysql launch doesnt seem to be running..
When application deploy megam_environment create an user and set password have find and remove it
it makes security issues
At the very least we need to document how somebody can create an user in zarafa.
Also this can be automated in the zarafa cookbook.
$ ssh -i ~/.ssh/gce.key [email protected]
$ sudo -s
$ zarafa-admin -c demo -p demo@megam -e [email protected] -f "MEGAM" -a 2
( zarafa-admin -c -p -e -f -a )
Currently we don't use ganglia and heka, so remove it from megam_run
include_recipe "megam_docker"
include_recipe "megam_docker"
Upstart script "start <some.class.name>" fails to find the Netty(play class path) and hence doesn't start.
Currently coreos spins, but we need to stick the sshkey provided by the user in nilavu inside coreos.
megam_deps needs to load all the components of an assembly and checks the component type.
megam_deps::default(load assembly json to get domain and include it in megam_dns)
megam_deps::java
megam_deps::play
@thomasalrin clean it up.
Formulate an approach and handover to yesh. Improve unit testing of chef-repo.
t on servicerabbitmq-server, as it's already been queued\n * execute[Enable rabbitmq-plugin for rabbitmq_management ] action run[2016-03-18T13:07:44+00:00] INFO: Processing execute[Enable rabbitmq-plugin for rabbitmq_management ] action run (megam_rabbitmq::default line 118)\n\n
================================================================================ \x1b[31m
Error executing action run
on resource 'execute[Enable rabbitmq-plugin for rabbitmq_management ]' ================================================================================
Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of rabbitmq-plugins enable rabbitmq_management ---- STDOUT: STDERR: erlexec: HOME must be set ---- End output of rabbitmq-plugins enable rabbitmq_management ---- Ran rabbitmq-plugins enable rabbitmq_management returned 1 Resource Declaration: --------------------- # In /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb 118: execute \"Enable rabbitmq-plugin for rabbitmq_management \" do 119: command \"rabbitmq-plugins enable rabbitmq_management\" 120: end 121: Compiled Resource: ------------------ # Declared in /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:118:in `from_file' execute(\"Enable rabbitmq-plugin for rabbitmq_management \") do action \"run\" retries 0 retry_delay 2 default_guard_interpreter :execute command \"rabbitmq-plugins enable rabbitmq_management\" backup 5 returns 0 declared_type :execute cookbook_name :megam_rabbitmq recipe_name \"default\" end [2016-03-18T13:07:44+00:00] INFO: Running queued delayed notifications before re-raising exception\n[2016-03-18T13:07:44+00:00] INFO: template[/etc/rabbitmq/rabbitmq-env.conf] sending restart action to service[rabbitmq-server] (delayed)\n * service[rabbitmq-server] action restart[2016-03-18T13:07:44+00:00] INFO: Processing service[rabbitmq-server] action restart (megam_rabbitmq::default line 178)\n\n ================================================================================ \
x1b[31mError executing action restart
on resource 'service[rabbitmq-server]'
================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of stop rabbitmq-server && start rabbitmq-server ---- STDOUT: STDERR: stop: Unknown job: rabbitmq-server ---- End output of stop rabbitmq-server && start rabbitmq-server ---- Ran stop rabbitmq-server && start rabbitmq-server returned 1 Resource Declaration: --------------------- # In /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb 178: service node['rabbitmq']['service_name'] do 179: provider Chef::Provider::Service::Upstart 180: action [:enable, :start] 181: restart_command "stop #{node['rabbitmq']['service_name']} && start #{node['rabbitmq']['service_name']}" 182: only_if { File.exist?('/etc/init.d/rabbitmq-server') } 183: end 184: Compiled Resource: ------------------ # Declared in /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:178:in `from_file' service("rabbitmq-server") do provider Chef::Provider::Service::Upstart action [:enable, :start] supports {:restart=>false, :reload=>false, :status=>false} retries 0 retry_delay 2 default_guard_interpreter :default service_name "rabbitmq-server" pattern "rabbitmq-server" restart_command "stop rabbitmq-server && start rabbitmq-server" declared_type :service cookbook_name :megam_rabbitmq recipe_name "default" only_if { #code block } end \x1b[0m\nRunning handlers:\x1b[0m\n[2016-03-18T13:07:44+00:00] ERROR: Running exception handlers\nRunning handlers complete[2016-03-18T13:07:44+00:00] ERROR: Exception handlers complete\n[2016-03-18T13:07:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\nChef Client failed. 12 resources updated in 465.454285083 seconds\x1b[0m\n[2016-03-18T13:07:44+00:00] ERROR: Chef::Exceptions::MultipleFailures\n[2016-03-18T13:07:45+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\n chefsolo run ended failed.\nexit status 1"
time="2016-03-18T13:07:45Z" level=error msg="Unable to stateup box : exit status 1"
time="2016-03-18T13:07:45Z" level=debug msg="nicknames.megambox.com_log:{18 Mar 16 13:07 UTC chefsolo run ended failed. gulp subsides COM6943313236541040135}"
time="2016-03-18T13:07:45Z" level=debug msg="nicknames.megambox.com_log:{18 Mar 16 13:07 UTC exit status 1 gulp subsides COM6943313236541040135}"
metering server(gmetad) ip
Beaver streams log to amqp-server
elasticsearch server(rsyslog) ip
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.