MaxFedotov / puppet-clickhouse

Clickhouse puppet module
8 stars 6 forks source link

Does not add repository #3

Open rmalenko opened 5 years ago

rmalenko commented 5 years ago

Hi Max,

I use

node /^clickhouse-([0-9][0-9][0-9])-([0-9][0-9])\.test\.me$/ {
  include 'clickhouse::repo'
}

But the repository does not create Debian 9

Thank you,

MaxFedotov commented 5 years ago

Hi @rmalenko,

can you please provide more info or output from puppet agent

rmalenko commented 5 years ago

Hi @MaxFedotov I have commented in clickhouse/manifests/cat repo.pp # Apt::Source['clickhouse-yandex'] -> Package <| |>

And my manifest looks like this


node /^clickhouse-([0-9][0-9][0-9])-([0-9][0-9])\.test\.me$/ {
 class { 'clickhouse::repo':
    before  => [Class['clickhouse::server'], Class['clickhouse::client']]
  }
class { 'clickhouse::server':
    package_name     => 'clickhouse-server',
    # package_ensure   => '19.4.0.49',
...
}

Now it works.