diff --git a/states/awscli/init.sls b/states/awscli/init.sls new file mode 100644 index 0000000..167540e --- /dev/null +++ b/states/awscli/init.sls @@ -0,0 +1,13 @@ +/opt/awscli/venv: + virtualenv.managed: + - system_site_packages: False + - requirements: /opt/awscli/requirements.txt + - require: + - file: awscli_requirements + +awscli_requirements: + file.managed: + - name: /opt/awscli/requirements.txt + - source: salt://awscli/requirements.txt + - template: jinja + diff --git a/states/awscli/requirements.txt b/states/awscli/requirements.txt new file mode 100644 index 0000000..27c5eae --- /dev/null +++ b/states/awscli/requirements.txt @@ -0,0 +1 @@ +awscli=={{ pillar['pip']['awscli'] }}