Skip to content

Commit

Permalink
Add some fixes for http_proxy support.
Browse files Browse the repository at this point in the history
  • Loading branch information
HAMSIK Adam committed Jul 1, 2014
1 parent 16407f7 commit 981b460
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion littlechef/solo.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def configure(current_node=None):
}
with settings(hide('everything')):
try:
upload_template('solo.rb', '/etc/chef/',
upload_template('solo.rb.j2', '/etc/chef/solo.rb',
context=data, use_sudo=True, backup=False, template_dir=BASEDIR,
use_jinja=True, mode=0400)
except SystemExit:
Expand Down
4 changes: 1 addition & 3 deletions littlechef/solo.rb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ environment_path "{{node_work_path}}/environments"
environment "{{environment}}"
verbose_logging {{verbose}}
verify_api_cert true

{% if http_proxy %}
http_proxy "{{http_proxy}}"
{% endif %}

{% if https_proxy %}
http_proxy "{{https_proxy}}"
https_proxy "{{https_proxy}}"
{% endif %}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
install_requires=['fabric>=1.5.4', 'argparse', 'jinja2>=2.7.3'],
packages=['littlechef'],
package_data={
'littlechef': ['solo.rb', 'environment.rb']
'littlechef': ['solo.rb.j2', 'environment.rb']
# NOTE: Chef 10 only (environment.rb)
},
scripts=['fix'],
Expand Down

0 comments on commit 981b460

Please sign in to comment.