Ignore:
Timestamp:
Feb 7, 2021, 2:32:45 PM (6 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
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.
Message:

Merge branch 'master' into debian/bullseye

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/gnuboat/modules/gnuboat_mapservice/manifests/init.pp

    raf6ade4 r8721817  
    11class gnuboat_mapservice
    22(
    3         Boolean $containerized = true,
    4         Boolean $mapservice_host = false,
     3    Boolean $containerized = true,
     4    Boolean $mapservice_host = false,
    55#       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,
    2424)
    2525{
    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
    3132
    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
    4042
    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    }
    5950}
Note: See TracChangeset for help on using the changeset viewer.