summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp71
1 files changed, 71 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index bf27f97..8ba8b9a 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1,3 +1,74 @@
+node 'busting.adrift.space' {
+
+ file_line { 'hosts ourself':
+ ensure => present,
+ line => "::1\t${::fqdn}\t${facts['name']}",
+ path => '/etc/hosts',
+ }
+
+ ensure_packages(['ruby'])
+
+ class { 'puppet':
+ server => true,
+ # agent => false,
+ server_foreman => false,
+ # server_reports => 'puppetdb',
+ server_reports => 'store',
+ server_storeconfigs => false,
+ server_git_repo => true,
+ server_git_repo_path => '/var/lib/puppet.git',
+ server_external_nodes => '',
+ }
+
+ # class { 'puppet::server::puppetdb':
+ # port => 8080,
+ # }
+
+ # exec { 'puppetdb ssl-setup':
+ # creates => '/etc/puppetlabs/puppetdb/ssl/{ca,private,public}.pem'
+ # }
+
+ class { 'puppetdb':
+ listen_address => '::',
+ disable_ssl => false,
+ }
+ # class { 'puppetdb::master::config': }
+
+ # https://forge.puppet.com/modules/puppet/puppetboard/readme
+ # Configure Apache
+ class { 'apache':
+ default_vhost => false,
+ purge_configs => true,
+ }
+
+ $wsgi = $facts['os']['family'] ? {
+ 'Debian' => {
+ package_name => 'libapache2-mod-wsgi-py3',
+ mod_path => '/usr/lib/apache2/modules/mod_wsgi.so',
+ },
+ default => {}
+ }
+
+ class { 'apache::mod::wsgi':
+ * => $wsgi,
+ }
+
+ # Configure puppetboard
+
+ class { 'puppetboard':
+ manage_git => true,
+ manage_virtualenv => true,
+ require => Class['puppetdb'],
+ puppetdb_port => 8080,
+ python_loglevel => 'debug',
+ }
+
+
+ class { 'puppetboard::apache::vhost':
+ vhost_name => $::fqdn,
+ port => 80,
+ }
+
node 'gandalf.adrift.space' {
profiles::remarkable { 'any name':
addr => '3',