This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apt Repository Managers | |
* reprepro - https://launchpad.net/reprepro | |
* freight - https://github.com/rcrowley/freight | |
* prm - https://github.com/dnbert/prm | |
* depot - https://github.com/coderanger/depot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
bin_path=/opt/ruby-210/embedded/bin | |
update-alternatives --install /usr/bin/ruby ruby $bin_path/ruby 10 \ | |
--slave /usr/bin/irb irb $bin_path/irb \ | |
--slave /usr/bin/erb erb $bin_path/erb \ | |
--slave /usr/bin/rdoc rdoc $bin_path/rdoc \ | |
--slave /usr/bin/ri ri $bin_path/ri \ | |
--slave /usr/bin/testrb testrb $bin_path/testrb \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_solo | |
platforms: | |
- name: ubuntu-12.04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
# quickly generate a list of all the locked versions from Berksfile.lock | |
# in a format suitable for environment['cookbook_versions'] | |
# basically berks apply without berkshelf | |
lockfile = JSON.load(IO.read("Berksfile.lock")) | |
cb_versions = {} | |
lockfile['sources'].keys.sort.each do |cb| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Omnibus configuration file /home/msf/git/omniscan-omnibus/omnibus.rb | |
Could not extract version information from `git describe`. Setting version to 0.0.0 | |
Building python-crypto for omniscan project | |
Something went wrong...the Omnibus just ran off the road! | |
Error raised was: | |
Don't know how to build task ':build' | |
Backtrace: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chef_gem "chef-handler-mail" | |
gem "chef-handler-mail" | |
chef_handler "MailHandler" do | |
source 'chef/handler/mail' | |
arguments :to_address => "root" | |
action :nothing | |
end.run_action(:enable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# append following lines | |
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f| | |
load f | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"node", "q"=>" | |
", "start"=>"0", "rows"=>"20", "controller"=>"chef_server_api/search", "sort"=>""} | |
merb : worker (port 4000) ~ 500 "null java.lang.NullPointerException \tat java.io.StringR | |
eader.<init>(StringReader.java:50) \tat org.apache.lucene.queryParser.QueryParser.parse(Qu | |
eryParser.java:197) \tat org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.ja | |
va:78) \tat org.apache.solr.search.QParser.getQuery(QParser.java:131) \tat org.apache.solr | |
.handler.component.QueryComponent.prepare(QueryComponent.java:89) \tat org.apache.solr.han | |
dler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) \tat org.apache.sol | |
r.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) \tat org.apache.so | |
lr.core.SolrCore.execute(SolrCore.java:1317) \tat org.apache.solr.servlet.SolrDispatchFilt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ knife ssh | |
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) | |
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request' | |
from /usr/lib/ruby/1.8/chef/rest.rb:106:in `get_rest' | |
from /usr/lib/ruby/1.8/chef/search/query.rb:37:in `search' | |
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:63:in `configure_session' | |
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:191:in `run' | |
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run' | |
from /usr/bin/knife:25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knife index rebuild -y | |
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) | |
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request' | |
from /usr/lib/ruby/1.8/chef/rest.rb:116:in `post_rest' | |
from /usr/lib/ruby/1.8/chef/knife/index_rebuild.rb:35:in `run' | |
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run' | |
from /usr/bin/knife:25 |
NewerOlder