Created
May 26, 2013 20:17
-
-
Save groob/5653895 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include wget | |
# Setup apache and mysql | |
class {'apache': } | |
class {'apache::mod::php': } | |
class { 'mysql': } | |
class { 'mysql::server': | |
config_hash => { 'root_password' => 'password' } | |
} | |
# Install Tiny Tiny RSS | |
# Replace the name and password for the mysql database. | |
class {'ttrss': | |
db_name => "ttrss", | |
db_user => "ttrss", | |
db_password => "pasword", | |
} | |
# Change rss.example.com to your domain. | |
apache::vhost { 'rss.example.com': | |
port => '80', | |
docroot => '/opt/tt-rss', | |
} | |
# Run this puppet manifest every 10 minutes | |
cron { 'run_puppet': | |
command => '/usr/bin/puppet apply /home/ubuntu/tt.pp', | |
user => root, | |
minute => '*/10' | |
} | |
# Update RSS Feeds every 15 minutes | |
cron { 'update_rss': | |
command => '/usr/bin/php /opt/tt-rss/update.php --feeds --quiet', | |
user => www-data, | |
minute => '*/15' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment