This file contains 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
import java.util.Random; | |
public class ConnectDemo { | |
public static void main(String[] args) { | |
ConnectionManager connMngr =new ConnectionManager(); | |
connMngr.createConnection(); | |
connMngr.createConnection(); | |
connMngr.createConnection(); | |
connMngr.createConnection(); | |
This file contains 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
Stove experienced an error! | |
E: ArgumentError | |
E: wrong number of arguments (2 for 1) | |
E: /home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook/metadata.rb:60:in `gem' | |
/opt/chefdk/chef-repo/cookbooks/sys_dns/metadata.rb:18:in `from_file' | |
/home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook/metadata.rb:160:in `instance_eval' | |
/home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook/metadata.rb:160:in `from_file' | |
/home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook/metadata.rb:28:in `from_file' | |
/home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook.rb:112:in `load_metadata!' | |
/home/baurzhan/.chefdk/gem/ruby/2.1.0/bundler/gems/stove-942341752e19/lib/stove/cookbook.rb:57:in `initialize' |
This file contains 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
def install_gem(gem_name, gem_source, gem_version, gem_options, gem_compile_time) | |
# Chef::Log.warn("gem_name #{gem_name} gem_version #{gem_version} gem_source #{gem_source}") | |
# Install gem from private gem server | |
res = Chef::Resource::ChefGem.new gem_name, run_context | |
res.clear_sources true | |
res.compile_time gem_compile_time | |
res.options if gem_options | |
res.version gem_version | |
res.source gem_source | |
res.run_action :install |
This file contains 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
ohai 'reload' do | |
action :nothing | |
end.run_action(:reload) | |
cookbook_file '/opt/ohai/plugins/openstack_v2.rb' do | |
mode '0755' | |
notifies :reload, 'ohai[reload]', :immediately | |
source 'ohai.openstack_v2.rb' | |
action :nothing | |
end.run_action(:create) |
This file contains 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
sys_dns hostname do | |
provider "sys_dns_#{node[:ebet][:cluster_dns]}" | |
ip_address endpoint_connection('sys_dns) | |
hostname external_hostname | |
zone node[:sys][:host_domain] | |
comment 'Host Servername' | |
action :append | |
end |
NewerOlder