Skip to content

Commit

Permalink
Move vgcn-mounts.yml.j2 template from mounts repository to userdata.y…
Browse files Browse the repository at this point in the history
…aml.j2

Move the contents of vgcn-mounts.yml.j2 from the mounts repository to userdata.yaml.j2.

Removes the need to call `cd mounts; rm -f dest/*; make dest/vgcn-mounts.yml; cd  ..` in Jenkins, makes it possible to remove vgcn-mounts.yml and templates/vgcn-mounts.yml.j2 from the mounts repository.
  • Loading branch information
kysrpex committed Nov 8, 2023
1 parent 6249ba2 commit aad80ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions userdata.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,21 @@ write_files:
owner: root:root
path: /etc/auto.master.d/data.autofs
permissions: "0644"
- content: |
{% for mount in dnb.values() -%}
{{ mount.name }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor -%}
{% for mount in jwd.values() -%}
{{ mount.name }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor %}
owner: root:root
path: /etc/auto.data
permissions: "0644"
- content: |
{% for mount in tools.values() -%}
{{ mount.path }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor -%}
{{ sync.gxkey.path }} -{{ sync.gxkey.nfs_options | join(',') }} {{ sync.gxkey.export }}
owner: root:root
path: /etc/auto.usrlocal
permissions: "0644"

0 comments on commit aad80ba

Please sign in to comment.