Skip to content

Instantly share code, notes, and snippets.

import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
domain = Domain.global()
store = Jenkins.instance.getExtensionList('com.cloudbees.plugins.credentials.SystemCredentialsProvider')[0].getStore()
@kam1kaze
kam1kaze / Chef-solo.md
Last active February 7, 2018 11:17 — forked from vpack/Chef-solo.md
Chef Solo

Chef Solo is very useful for single server configuration management.

Chef Solo config file '/etc/chef/solo.rb' is optional and it defaults to repo='/var/chef/'.

Just copy cookbooks directly to /var/chef/cookbooks. Run them using chef-solo command.

For e.g

cp -a /var/chef/cache/cookbooks /var/chef/cookbooks