Changeset 8721817 for src/puppetcode/environments/gnuboat/modules/gnuboat_mapservice/manifests/init.pp
- Timestamp:
- Feb 7, 2021, 2:32:45 PM (6 years ago)
- Branches:
- debian/bullseye
- Children:
- 5071137
- Parents:
- af6ade4 (diff), 7dc03d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/modules/gnuboat_mapservice/manifests/init.pp
raf6ade4 r8721817 1 1 class gnuboat_mapservice 2 2 ( 3 Boolean $containerized = true,4 Boolean $mapservice_host = false,3 Boolean $containerized = true, 4 Boolean $mapservice_host = false, 5 5 # String $version = 'latest', 6 String $database_name = 'gnuboat_mapservice',7 String $database_user = 'gnuboat_mapservice',8 String $database_password = extlib::random_password(42),9 String $database_host = "localhost",10 String $mapservice_version = 'latest',11 Integer $mapservice_workers = 1,12 Integer $mapservice_port = 8080,13 Integer $mapservice_celery_nodes = 2,14 String $broker_host = "localhost",15 String $celery_cache_host = "localhost",16 String $mapservice_tile_cache_dir = '/var/lib/gnuboat/tilescache',17 Boolean $apache_enabled = false,18 String $apache_vhost_name = "gnuboat_proxy",19 String $apache_vhost_servername = "localhost",20 String $apache_vhost_ssl_cert = '',21 String $apache_vhost_ssl_key = '',22 Boolean $apache_replace_default_host = false,23 Boolean $osm_tileserver_enabled= false,6 String $database_name = 'gnuboat_mapservice', 7 String $database_user = 'gnuboat_mapservice', 8 String $database_password = extlib::random_password(42), 9 String $database_host = "localhost", 10 String $mapservice_version = 'latest', 11 Integer $mapservice_workers = 1, 12 Integer $mapservice_port = 8080, 13 Integer $mapservice_celery_nodes = 2, 14 String $broker_host = "localhost", 15 String $celery_cache_host = "localhost", 16 String $mapservice_tile_cache_dir = '/var/lib/gnuboat/tilescache', 17 Boolean $apache_enabled = false, 18 String $apache_vhost_name = "gnuboat_proxy", 19 String $apache_vhost_servername = "localhost", 20 String $apache_vhost_ssl_cert = '', 21 String $apache_vhost_ssl_key = '', 22 Boolean $apache_replace_default_host = false, 23 Boolean $osm_tileserver_enabled= false, 24 24 ) 25 25 { 26 if $gnuboat_type == "mapservice_host" { 27 contain gnuboat_mapservice::apache_config 28 if $containerized { 29 contain gnuboat_mapservice::host_install 30 contain gnuboat_mapservice::host_service 26 if $gnuboat_type == "mapservice_host" { 27 contain gnuboat_mapservice::apache_config 28 containt gnuboat_mapservice::mapservice_webclient_install 29 if $containerized { 30 contain gnuboat_mapservice::host_install 31 contain gnuboat_mapservice::host_service 31 32 32 Class['gnuboat_mapservice::host_install'] -> 33 Class['gnuboat_mapservice::apache_config'] -> 34 Class['gnuboat_mapservice::host_service'] 35 } 36 else { 37 contain gnuboat_mapservice::mapservice_without_container_install 38 contain gnuboat_mapservice::mapservice_without_container_config 39 contain gnuboat_mapservice::mapservice_without_container_service 33 Class['gnuboat_mapservice::host_install'] -> 34 Class['gnuboat_mapservice::mapservice_webclient_install'] -> 35 Class['gnuboat_mapservice::apache_config'] -> 36 Class['gnuboat_mapservice::host_service'] 37 } 38 else { 39 contain gnuboat_mapservice::mapservice_without_container_install 40 contain gnuboat_mapservice::mapservice_without_container_config 41 contain gnuboat_mapservice::mapservice_without_container_service 40 42 41 Class['gnuboat_mapservice::mapservice_without_container_install'] -> 42 Class['gnuboat_mapservice::mapservice_without_container_config'] -> 43 Class['gnuboat_mapservice::apache_config'] -> 44 Class['gnuboat_mapservice::mapservice_without_container_service'] 45 } 46 } 47 48 if $gnuboat_type == "mapservice_database" { 49 contain gnuboat_mapservice::database_install 50 51 Class['gnuboat_mapservice::database_install'] 52 } 53 54 if $gnuboat_type == "mapservice_mapservice" { 55 contain gnuboat_mapservice::mapservice_install 56 57 Class['gnuboat_mapservice::mapservice_install'] 58 } 43 Class['gnuboat_mapservice::mapservice_without_container_install'] -> 44 Class['gnuboat_mapservice::mapservice_webclient_install'] -> 45 Class['gnuboat_mapservice::mapservice_without_container_config'] -> 46 Class['gnuboat_mapservice::apache_config'] -> 47 Class['gnuboat_mapservice::mapservice_without_container_service'] 48 } 49 } 59 50 }
Note:
See TracChangeset
for help on using the changeset viewer.
