From 23322a791d2846e8485ffb1b7664262bb3f6f8eb Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 18 Jun 2013 12:13:15 -0400 Subject: [PATCH] puppet: Add sparkle configuration files (imported from commit e36efd64584d946bb13fb5b44af817e85345e197) --- .../files/sparkle/sparkle-changelog.html | 16 ++++++++++ .../modules/humbug/files/sparkle/sparkle.xml | 29 +++++++++++++++++++ .../humbug/manifests/prod_app_frontend.pp | 25 ++++++++++++++-- 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 servers/puppet/modules/humbug/files/sparkle/sparkle-changelog.html create mode 100755 servers/puppet/modules/humbug/files/sparkle/sparkle.xml diff --git a/servers/puppet/modules/humbug/files/sparkle/sparkle-changelog.html b/servers/puppet/modules/humbug/files/sparkle/sparkle-changelog.html new file mode 100644 index 0000000000..b3177607b9 --- /dev/null +++ b/servers/puppet/modules/humbug/files/sparkle/sparkle-changelog.html @@ -0,0 +1,16 @@ + + + + +

Humbug Desktop

+

Version 0.0.2

+ +

Version 0.0.1

+ + + diff --git a/servers/puppet/modules/humbug/files/sparkle/sparkle.xml b/servers/puppet/modules/humbug/files/sparkle/sparkle.xml new file mode 100755 index 0000000000..240ddcd87d --- /dev/null +++ b/servers/puppet/modules/humbug/files/sparkle/sparkle.xml @@ -0,0 +1,29 @@ + + + + Humbug Changelog + http://humbughq.com/dist/apps/mac/sparkle.xml + Latest updates to Humbug's Desktop Application + en + + + Version 0.0.2 (Upgrade Test Alpha) + + + http://humbughq.com/dist/apps/mac/sparkle-changelog.html + + Tue, 18 Jun 2013 16:20:11 +0000 + + + + + Version 0.0.1 (Initial Alpha) + + + http://humbughq.com/dist/apps/mac/sparkle-changelog.html + + Tue, 18 Jun 2013 10:20:11 +0000 + + + + diff --git a/servers/puppet/modules/humbug/manifests/prod_app_frontend.pp b/servers/puppet/modules/humbug/manifests/prod_app_frontend.pp index 9aa3874a44..23f89af9b4 100644 --- a/servers/puppet/modules/humbug/manifests/prod_app_frontend.pp +++ b/servers/puppet/modules/humbug/manifests/prod_app_frontend.pp @@ -14,7 +14,28 @@ class humbug::prod_app_frontend { target => '/etc/nginx/sites-available/humbug', } + file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api", + "/srv/www/dist/apps/", "/srv/www/dist/apps/mac/" ]: + ensure => "directory", + owner => "humbug", + group => "humbug", + mode => 644, + } - # TODO: Setup the API distribution directory at /srv/www/dist/api/. - + file { "/srv/www/dist/apps/mac/sparkle.xml": + ensure => file, + require => File['/srv/www/dist/apps/mac/'], + owner => "humbug", + group => "humbug", + mode => 644, + source => "puppet:///modules/humbug/sparkle/sparkle.xml", + } + file { "/srv/www/dist/apps/mac/sparkle-changelog.html": + ensure => file, + require => File['/srv/www/dist/apps/mac/'], + owner => "humbug", + group => "humbug", + mode => 644, + source => "puppet:///modules/humbug/sparkle/sparkle-changelog.html", + } }