Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netdata: allow customizing netdata.conf, allow custom host domain #495

Closed
wants to merge 2 commits into from

Conversation

khartahk
Copy link
Contributor

What this PR does / why we need it:

  • use netdata.conf.j2 to template the netdata.conf file
  • allow custom files to be templated
  • mount netdata.conf file into docker container
  • mount dbengine volume in container to allow history retention
    when rebuiliding container
  • allow custom volumes to be mounted in the container
  • add ansible_nas_domain_root variable used as netdata hostname

Any other useful info:
when you have multiple nas servers this allows you to properly name
the server in netdata.
example:

  • ansible_nas_hostname: nas

  • ansible_nas_domain: nas.domain.tld

  • ansible_nas_domain_root: domain.tld

    original netdata hostname: nas.nas.domain.tld
    new netdata hostname: nas.domain.tld

@khartahk khartahk force-pushed the role-netdata branch 3 times, most recently from 45cef54 to 0267119 Compare November 11, 2021 12:45
@khartahk khartahk force-pushed the role-netdata branch 2 times, most recently from 1c4a22d to 3341c22 Compare November 11, 2021 16:03
@khartahk khartahk force-pushed the role-netdata branch 4 times, most recently from 03b47f9 to c74ba30 Compare December 21, 2021 21:33
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jun 28, 2022
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jun 28, 2022
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jun 30, 2022
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jan 22, 2023
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jan 22, 2023
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Feb 10, 2024
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
@khartahk khartahk closed this Feb 10, 2024
@khartahk khartahk deleted the role-netdata branch February 10, 2024 15:03
khartahk added a commit to khartahk/ansible-nas that referenced this pull request Jan 18, 2025
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant