Creates a tarball of Chef cookbooks from a Berksfile or Cheffile for chef-solo.
Copy the program to your local machine (perhaps ~/bin
?) and install
Berkshelf or Librarian-Chef:
struct NPC | |
{ | |
uint8_t activeScale; // higher => will execute more logic / TICK | |
void AdjustActivityScale(const float normalizedDistanceFromPC) // Clamped to 0...1 | |
{ | |
activeScale = normalizedDistanceFromPC * 10.0; | |
} | |
Test: | |
it "executes dummy command" do | |
expect(chef_run).to run_execute('random hiragana 料').with_command('puts 料理長') | |
end | |
Other notes: | |
Cookbook upload works fine with Japanese in all parts of the cookbook. | |
Failure: |
:sources: | |
- http://<%= node['gem_file']['host'] %>:<%= node['gem_file']['port'] %>/ |
#!/bin/bash | |
set -e | |
#set -x | |
TOKEN=$( cat /root/.github-token ) | |
BASEURL="https://api.github.com/orgs/${1}/repos?type=owner&access_token=${TOKEN}&per_page=100" | |
BACKUPS_ZFS="zones/$( zonename )/data/backup/github" |
web_app "my_site" do | |
server_name node['hostname'] | |
server_aliases [node['fqdn'], "my-site.example.com"] | |
docroot "/srv/www/my_site" | |
cookbook "apache2" | |
end |
git@github.com:simonvc/riak-dev-cluster.git | |
rake bootstrap |
## Default ring creation size. Make sure it is a power of 2, | |
## e.g. 16, 32, 64, 128, 256, 512 etc | |
## ring_size = 64 | |
## enable active anti-entropy subsystem | |
anti_entropy = on | |
## location of the console log | |
log.console.file = ./log/console.log |
resource_name :email_alias | |
property :address | |
property :recipients, Array | |
default_action :create | |
action :create do | |
with_run_context :root do |
umask 022 | |
export PATH=~/bin:`echo $PATH | sed 's|:/bin:|&/opscode/chefdk/bin:/mnt/c/Users/Sean/AppData/Local/chefdk/gem/ruby/2.4.0/bin:/opscode/chefdk/embedded/bin:|'` |