Browse Source

Deploy new logo.png and motd.js files

Recently-introduced change in ptgbot requires deployment of
two new files (logo.png and motd.js).

Also remove :: prefixes to make linter happy.

Depends-On: I57d02c505ced355d53bc79e0d8240ea63737eae3
Change-Id: Ibd0dd9f5e8dabb863d260933d5a2ee29e84a2df0
changes/27/694327/2
Thierry Carrez 2 years ago
parent
commit
1afaf5492c
1 changed files with 26 additions and 2 deletions
  1. +26
    -2
      manifests/init.pp

+ 26
- 2
manifests/init.pp View File

@ -6,7 +6,7 @@ class ptgbot(
$channel,
$vhost_name,
) {
include ::pip
include pip
user { 'ptgbot':
ensure => present,
@ -140,6 +140,18 @@ class ptgbot(
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/logo.png':
ensure => present,
group => 'ptgbot',
mode => '0444',
owner => 'root',
replace => true,
require => [File['/var/lib/ptgbot/www'],
User['ptgbot']],
source => '/opt/ptgbot/html/logo.png',
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/bootstrap-3.3.7.min.css':
ensure => present,
group => 'ptgbot',
@ -188,6 +200,18 @@ class ptgbot(
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/motd.js':
ensure => present,
group => 'ptgbot',
mode => '0444',
owner => 'root',
replace => true,
require => [File['/var/lib/ptgbot/www'],
User['ptgbot']],
source => '/opt/ptgbot/html/motd.js',
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/jquery-1.9.1.min.js':
ensure => present,
group => 'ptgbot',
@ -301,7 +325,7 @@ class ptgbot(
require => User['ptgbot'],
}
::httpd::vhost { $vhost_name:
httpd::vhost { $vhost_name:
port => 80,
docroot => '/var/lib/ptgbot/www',
priority => '50',


Loading…
Cancel
Save