Move create /usr/local/noveria/etc, move noveriablcgen.json to noveria/etc

This commit is contained in:
LinuxSquare 2023-10-20 15:08:22 +02:00
parent 20fe7f5b99
commit 8d5bc2f8f2
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{% set noveria = { {% set noveria = {
'bin_dir': '/usr/local/noveria/bin', 'bin_dir': '/usr/local/noveria/bin',
'app_dir': '/usr/local/noveria/apps' 'app_dir': '/usr/local/noveria/apps',
'etc_dir': '/usr/local/noveria/etc'
} %} } %}

View file

@ -25,7 +25,7 @@ util_noveriablcgen_link:
util_noveriablcgen_config: util_noveriablcgen_config:
file.managed: file.managed:
- name: {{ noveria.app_dir }}/noveriablcgen/noveriablcgen.json - name: {{ noveria.etc_dir }}/noveriablcgen/noveriablcgen.json
- source: salt://{{ tpldir }}/files/noveriablcgen_config.json.jinja - source: salt://{{ tpldir }}/files/noveriablcgen_config.json.jinja
- template: jinja - template: jinja
- context: - context:
@ -35,6 +35,7 @@ util_noveriablcgen_config:
ROOT_UUID: {{ salt['cmd.shell']('lsblk -o LABEL,UUID | grep ROOT | awk \'{print $2}\'') }} ROOT_UUID: {{ salt['cmd.shell']('lsblk -o LABEL,UUID | grep ROOT | awk \'{print $2}\'') }}
GRUB_CONFIG: "/boot/grub/grub.cfg" GRUB_CONFIG: "/boot/grub/grub.cfg"
- mode: '0644' - mode: '0644'
- makedirs: true
- user: root - user: root
- group: root - group: root
- require: - require: