mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-20 14:50:43 +03:00
autofs templates expanded
This commit is contained in:
parent
816c40ce40
commit
5012917412
20
gpoa/templates/autofs_auto.j2
Normal file
20
gpoa/templates/autofs_auto.j2
Normal file
@ -0,0 +1,20 @@
|
||||
{#
|
||||
# GPOA - GPO Applier for Linux
|
||||
#
|
||||
# Copyright (C) 2019-2020 BaseALT Ltd.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#}
|
||||
{{ home_dir }}/net {{ mount_file }} -t 120
|
||||
|
25
gpoa/templates/autofs_identity.j2
Normal file
25
gpoa/templates/autofs_identity.j2
Normal file
@ -0,0 +1,25 @@
|
||||
{#
|
||||
# GPOA - GPO Applier for Linux
|
||||
#
|
||||
# Copyright (C) 2019-2020 BaseALT Ltd.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#}
|
||||
{% if login %}
|
||||
username={{ login }}
|
||||
{% endif %}
|
||||
{% if password %}
|
||||
password={{ password }}
|
||||
{% endif %}
|
||||
|
@ -16,7 +16,6 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#}
|
||||
{% for drv in drives %}
|
||||
{% mountdir %}/{% drv.dir %} -fstype=cifs,rw,username={% drv.login %},password={% drv.password %} :{% drv.path %}
|
||||
{%- for drv in drives %}
|
||||
{% drv.dir %} -fstype=cifs,cruid=$AUTOFS_UID,sec=krb5 :{% drv.path %}
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user