mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-13 09:54:38 -05:00
28 lines
643 B
Plaintext
28 lines
643 B
Plaintext
{#
|
|
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#}
|
|
|
|
{% if grains['nodename'] != 'dom0' -%}
|
|
|
|
"{{ slsdotpath }}-minion-start-sshd":
|
|
file.managed:
|
|
- name: /rw/config/rc.local.d/50-ansible.rc
|
|
- source: salt://{{ slsdotpath }}/files/client/rc.local.d/50-ansible.rc
|
|
- mode: '0755'
|
|
- user: root
|
|
- group: root
|
|
- makedirs: True
|
|
|
|
"{{ slsdotpath }}-minion-ssh-authorized_keys":
|
|
file.touch:
|
|
- name: /home/user/.ssh/authorized_keys
|
|
- dir_mode: '0700'
|
|
- file_mode: '0600'
|
|
- user: user
|
|
- group: user
|
|
- makedirs: True
|
|
|
|
{% endif -%}
|