From ed137893babebabdfdb5adf44d1a52272093ce8b Mon Sep 17 00:00:00 2001 From: Sergey Stankevich Date: Sun, 9 Sep 2012 18:36:30 -0400 Subject: Initial import --- tests/gunicorn.pp | 14 ++++++++++++++ tests/init.pp | 5 +++++ tests/pip.pp | 10 ++++++++++ tests/requirements.pp | 10 ++++++++++ tests/virtualenv.pp | 12 ++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 tests/gunicorn.pp create mode 100644 tests/init.pp create mode 100644 tests/pip.pp create mode 100644 tests/requirements.pp create mode 100644 tests/virtualenv.pp (limited to 'tests') diff --git a/tests/gunicorn.pp b/tests/gunicorn.pp new file mode 100644 index 0000000..c081fd6 --- /dev/null +++ b/tests/gunicorn.pp @@ -0,0 +1,14 @@ +class { 'python': + version => 'system', + dev => true, + virtualenv => true, +} + +python::gunicorn { 'vhost': + ensure => present, + virtualenv => '/var/www/project1', + mode => 'wsgi', + dir => '/var/www/project1/current', + bind => 'unix:/tmp/gunicorn.socket', + environment => 'prod', +} diff --git a/tests/init.pp b/tests/init.pp new file mode 100644 index 0000000..4c51cc8 --- /dev/null +++ b/tests/init.pp @@ -0,0 +1,5 @@ +class { 'python': + version => 'system', + dev => true, + virtualenv => true, +} diff --git a/tests/pip.pp b/tests/pip.pp new file mode 100644 index 0000000..f0db172 --- /dev/null +++ b/tests/pip.pp @@ -0,0 +1,10 @@ +class { 'python': + version => 'system', + dev => true, + virtualenv => true, +} + +python::pip { 'flask': + virtualenv => '/var/www/project1', + proxy => 'http://proxy.domain.com:3128', +} diff --git a/tests/requirements.pp b/tests/requirements.pp new file mode 100644 index 0000000..a57093f --- /dev/null +++ b/tests/requirements.pp @@ -0,0 +1,10 @@ +class { 'python': + version => 'system', + dev => true, + virtualenv => true, +} + +python::requirements { '/var/www/project1/requirements.txt': + virtualenv => '/var/www/project1', + proxy => 'http://proxy.domain.com:3128', +} diff --git a/tests/virtualenv.pp b/tests/virtualenv.pp new file mode 100644 index 0000000..190492c --- /dev/null +++ b/tests/virtualenv.pp @@ -0,0 +1,12 @@ +class { 'python': + version => 'system', + dev => true, + virtualenv => true, +} + +python::virtualenv { '/var/www/project1': + ensure => present, + version => 'system', + requirements => '/var/www/project1/requirements.txt', + proxy => 'http://proxy.domain.com:3128', +} -- cgit v1.2.3