Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

puppetlabs-toy-chest/puppet-cloud_connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Cloud_connection

What?

This type does no work. It just stores credentials for reference in the catalog for retrieval. As such there are no providers to work with.

Usage

All that is needed is to create a resource with that looks something like the following.

cloud_connection { 'myawscredentials':
  user     => $user,
  pass     => $pass,
  location => $region,
}

Now types that support this resource and reference this type to gain credential information.

mycloudtype { "aws":
  ...
  connection => 'myawscredentials',
  ...
}

Now the user, pass, and location are available in the 'mycloudtype'. Note, this is only supported on types that have implemented such features.

##Supported Modules?

The following modules are known to use this type to store credentials.

If support is added to other modules, please send a pull request to update this list.

Adding support for a type

To bring in the required code, a type needs to require the credentials code and then include the module to bring in the methods.

require 'puppet_x/cloud/credentials'
include PuppetX::Cloud::Credentials
Puppet::Type.newtype(:mynewtype) do
  ...
  autorequire(:connection) do
    self[:connection]
  end
end

About

A type for storing cloud credential information in the catalog.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages