-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Environment Support #2
base: master
Are you sure you want to change the base?
Conversation
@alvagante This is the one I was talking about for review and merge, thanks. :) |
@@ -13,7 +13,9 @@ def send_mail ( | |||
file_name, | |||
receiver, | |||
sender, | |||
envirnmnt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is indentation correct here?
@@ -36,6 +38,7 @@ def send_mail ( | |||
|
|||
# open the file to be sent | |||
filename = os.path.basename(file_name) | |||
attachment_name = environment + "-" + filename |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation?
@@ -216,6 +216,7 @@ | |||
Hash $setenv_safe = {}, | |||
String $up = '', | |||
String $down = '', | |||
String $environment = 'prod', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better not to use local class variables called $environment, as they might create confusion with Puppet's interla variable $environment .
Use $env or something similar, here and in line 325.
Anyway, current code should work the same
Adding Environment variable
Environment variable to appear on mail sent to client which will distinguish between environments
Adding to subject:
OpenVPN Configuration for us-east-2_prod environment
And file attached will be -.ovpn