https://github.com/sourceallies/puppet-awscli
A puppet module to install AWSCLI and manage the configuration
https://github.com/sourceallies/puppet-awscli
Last synced: 11 months ago
JSON representation
A puppet module to install AWSCLI and manage the configuration
- Host: GitHub
- URL: https://github.com/sourceallies/puppet-awscli
- Owner: sourceallies
- Created: 2014-05-09T15:42:19.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-07T02:30:49.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T22:23:13.026Z (about 2 years ago)
- Language: Puppet
- Size: 111 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Requirements
puppetlabs-stdlib
# Example config setup:
Define awscli::config_hash in hiera for your node to setup the default of 'backupuser' (generic service account name I use). This will attempt to create the home directory for the user if it doesn't exist but it does NOT setup the user/group for you, so you'll want to do that separately prior to running this module, I use profile::backupuser for that in this example:
```
$ grep -B1 aws modules/role/manifests/web_server.pp
class { 'profile::backupuser': } ->
class { 'awscli': }
$ grep aws hieradata/nodes/webserver01.domain.com.yaml
awscli::config_hash:
'your_backup_aws_creds':
aws_access_key: 'ABCDEFGHIJKLMNOPQRST'
aws_secret_key: 'UVWXYZabcdefghijklmnopqrstuvwxyz12345789'
aws_region: 'us-east-1'
```
If you're not using hiera you could still manually create a hash to be used with the awscli::config_hash parameter, or do something like this:
```
include awscli
awscli::config { 'your_user':
$aws_access_key => "ACCESSKEY123",
$aws_secret_key => "SECRETKEYABC",
$owner = 'your_user',
$group = 'your_group',
)
```