Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/adblockplus/manifests/web/static.pp

Issue 29733731: #7320 - Introduce helpcenter role (Closed)
Left Patch Set: For comments 8 and 9 Created April 17, 2018, 6:02 p.m.
Right Patch Set: Make documentation right Created April 17, 2018, 8:03 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « hiera/roles/web/static/helpcenter.yaml ('k') | modules/adblockplus/manifests/web/static/hook.pp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 # === Parameters: 7 # === Parameters:
8 # 8 #
9 # [*domain*] 9 # [*domain*]
10 # The domain name for the website. 10 # The domain name for the website.
(...skipping 16 matching lines...) Expand all
27 # Array of public keys that will have access to ssh commands 27 # Array of public keys that will have access to ssh commands
28 # 28 #
29 # [*hooks*] 29 # [*hooks*]
30 # Hash of adblockplus::web::static::hook items to set up in this context. 30 # Hash of adblockplus::web::static::hook items to set up in this context.
31 # 31 #
32 # === Examples: 32 # === Examples:
33 # 33 #
34 # class {'adblockplus::web::static': 34 # class {'adblockplus::web::static':
35 # domain => 'help.eyeo.com', 35 # domain => 'help.eyeo.com',
36 # hooks => { 36 # hooks => {
37 # own-uname => { 37 # uname => {
38 # file => { 38 # file => {
39 # content => 'uname -a', 39 # content => 'uname -a',
40 # } 40 # },
41 # } 41 # },
42 # uptime => {
43 # file => {
44 # target => '/usr/bin/uptime',
45 # ensure => 'link',
46 # },
47 # },
42 # }, 48 # },
43 # } 49 # }
44 # 50 #
45 class adblockplus::web::static ( 51 class adblockplus::web::static (
46 $domain, 52 $domain,
47 $ssl_certificate = undef, 53 $ssl_certificate = undef,
48 $ssl_private_key = undef, 54 $ssl_private_key = undef,
49 $ensure = 'present', 55 $ensure = 'present',
50 $deploy_user = 'web-deploy', 56 $deploy_user = 'web-deploy',
51 $deploy_user_authorized_keys = [], 57 $deploy_user_authorized_keys = [],
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 114
109 ensure_resource('file', '/usr/local/bin/hooks_wrapper', { 115 ensure_resource('file', '/usr/local/bin/hooks_wrapper', {
110 ensure => ensure_file_state($ensure), 116 ensure => ensure_file_state($ensure),
111 content => template('adblockplus/web/hooks_wrapper.sh.erb'), 117 content => template('adblockplus/web/hooks_wrapper.sh.erb'),
112 }) 118 })
113 119
114 # https://docs.puppet.com/puppet/latest/function.html#createresources 120 # https://docs.puppet.com/puppet/latest/function.html#createresources
115 create_resources('adblockplus::web::static::hook', $hooks) 121 create_resources('adblockplus::web::static::hook', $hooks)
116 } 122 }
117 123
LEFTRIGHT

Powered by Google App Engine
This is Rietveld