Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/ |
Upload File : |
3 ��b� � @ sH d Z ddlZddlmZmZmZ ddlmZ G dd� de�Z dd� Z dS ) a� Salt Minion ----------- **Summary:** set up and run salt minion This module installs, configures and starts salt minion. If the ``salt_minion`` key is present in the config parts, then salt minion will be installed and started. Configuration for salt minion can be specified in the ``conf`` key under ``salt_minion``. Any conf values present there will be assigned in ``/etc/salt/minion``. The public and private keys to use for salt minion can be specified with ``public_key`` and ``private_key`` respectively. Optionally if you have a custom package name, service name or config directory you can specify them with ``pkg_name``, ``service_name`` and ``config_dir``. **Internal name:** ``cc_salt_minion`` **Module frequency:** per instance **Supported distros:** all **Config keys**:: salt_minion: pkg_name: 'salt-minion' service_name: 'salt-minion' config_dir: '/etc/salt' conf: master: salt.example.com grains: role: - web public_key: | ------BEGIN PUBLIC KEY------- <key data> ------END PUBLIC KEY------- private_key: | ------BEGIN PRIVATE KEY------ <key data> ------END PRIVATE KEY------- � N)�safeyaml�subp�util)� bsd_utilsc @ s e Zd ZdZdd� ZdS )� SaltConstantsz> defines default distribution specific salt variables c C sh t j� rd| _d| _d| _nd| _d| _d| _t j|d| j�| _t j|d| j�| _t j|d| j�| _d S ) Nzpy-salt�salt_minionz/usr/local/etc/saltzsalt-minionz /etc/salt�pkg_nameZ config_dirZservice_name)r Z is_FreeBSDr �srv_name�conf_dirZget_cfg_option_str)�self�cfg� r �$/usr/lib/python3.6/cc_salt_minion.py�__init__<