Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit 2a75c9e

Browse files
committed
Merge pull request #263 from aharden/aharden-patch-1
Add support and doc for configuration file
2 parents 528e87d + 371abae commit 2a75c9e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ setting for all traffic like so:
110110
export PUPPET_AWS_PROXY=http://localhost:8888
111111
~~~
112112

113+
#### Using a configuration file
114+
115+
The AWS region and HTTP proxy can be provided in a file called
116+
`puppetlabs_aws_configuration.ini` in the Puppet confdir
117+
(`$settings::confdir`) using this format:
118+
119+
[default]
120+
region = us-east-1
121+
http_proxy = http://proxy.example.com:80
113122

114123
##Getting Started with aws
115124

lib/puppet_x/puppetlabs/aws.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def self.global_credentials
8484
def self.global_configuration
8585
Puppet.initialize_settings unless Puppet[:confdir]
8686
path = File.join(Puppet[:confdir], 'puppetlabs_aws_configuration.ini')
87-
File.exists?(path) ? parse_ini(File.new(path)) : nil
87+
File.exists?(path) ? ini_parse(File.new(path)) : nil
8888
end
8989

9090
def self.region_from_global_configuration

0 commit comments

Comments
 (0)