Skip to content

cubelets/chef-certbot

 
 

Repository files navigation

certbot

Usage

The certbot cookbook manages SSL certificate generation and renewal within projects.

Remove any SSLs which are stored within data bags.

Add the following to the project's Berksfile:

cookbook 'certbot', '~> 0.1.0'

Add the cookbook to the run list:

"run_list": {
  "recipe[certbot]"
}

Finally create a custom recipe, such as this:

certbot_certonly_webroot 'something' do
   webroot_path '/var/www/certbot'
   email '[email protected]'
   domains ['domain1.com', 'domain2.com']
   agree_tos true
end

You will need the cookbook which contains the recipe to depend on it in its metadata.rb to be able to use the resource:

depends 'certbot', '~> 0.1.0'

License and Authors

  • Author:: Andy Thompson
  • Author:: Felicity Ratcliffe
Copyright:: 2016 The Inviqa Group Ltd

See LICENSE file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 95.6%
  • Shell 2.6%
  • HTML 1.8%