| LEFT | RIGHT |
| 1 # == Class: adblockplus::web::static | 1 # == Class: adblockplus::web::static |
| 2 # | 2 # |
| 3 # Manage a simple Nginx-based webserver for static content | 3 # Manage a simple Nginx-based webserver for static content |
| 4 # that uses a customizable deployment script to e.g. fetch the content | 4 # that uses a customizable deployment script to e.g. fetch the content |
| 5 # from a repository server (ref. http://hub.eyeo.com/issues/4523) | 5 # from a repository server (ref. http://hub.eyeo.com/issues/4523) |
| 6 # | 6 # |
| 7 # | 7 # |
| 8 # === Parameters: | 8 # === Parameters: |
| 9 # | 9 # |
| 10 # [*domain*] | 10 # [*domain*] |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 | 63 |
| 64 adblockplus::user {$deploy_user: | 64 adblockplus::user {$deploy_user: |
| 65 authorized_keys => $deploy_user_authorized_keys, | 65 authorized_keys => $deploy_user_authorized_keys, |
| 66 ensure => $ensure, | 66 ensure => $ensure, |
| 67 password_hash => '*', | 67 password_hash => '*', |
| 68 shell => '/bin/bash', | 68 shell => '/bin/bash', |
| 69 groups => ['www-data'], | 69 groups => ['www-data'], |
| 70 } | 70 } |
| 71 | 71 |
| 72 file {"/home/$deploy_user/deploy_script.sh": | 72 file {"/home/$deploy_user/deploy_script.py": |
| 73 content => template('adblockplus/web/static_deploy_script.sh.erb'), | 73 source => 'puppet:///modules/adblockplus/web/static/deploy_script.py', |
| 74 ensure => $ensure, | 74 ensure => $ensure, |
| 75 mode => '0755', | 75 mode => '0755', |
| 76 owner => $deploy_user, | 76 owner => $deploy_user, |
| 77 } | 77 } |
| 78 | 78 |
| 79 } | 79 } |
| LEFT | RIGHT |