| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.7/site-packages/cloudinit/config/ |
Upload File : |
�
oB�]c @ s| d Z d d l m Z d d l m Z d d l m Z e j e � Z e Z
d Z d Z d
d � Z d
d � Z d � Z d
S( s@
Snap Config
-----------
**Summary:** snap_config modules allows configuration of snapd.
**Deprecated**: Use :ref:`snap` module instead. This module will not exist
in cloud-init 18.3.
This module uses the same ``snappy`` namespace for configuration but
acts only only a subset of the configuration.
If ``assertions`` is set and the user has included a list of assertions
then cloud-init will collect the assertions into a single assertion file
and invoke ``snap ack <path to file with assertions>`` which will attempt
to load the provided assertions into the snapd assertion database.
If ``email`` is set, this value is used to create an authorized user for
contacting and installing snaps from the Ubuntu Store. This is done by
calling ``snap create-user`` command.
If ``known`` is set to True, then it is expected the user also included
an assertion of type ``system-user``. When ``snap create-user`` is called
cloud-init will append '--known' flag which instructs snapd to look for
a system-user assertion with the details. If ``known`` is not set, then
``snap create-user`` will contact the Ubuntu SSO for validating and importing
a system-user for the instance.
.. note::
If the system is already managed, then cloud-init will not attempt to
create a system-user.
**Internal name:** ``cc_snap_config``
**Module frequency:** per instance
**Supported distros:** any with 'snapd' available
**Config keys**::
#cloud-config
snappy:
assertions:
- |
<assertion 1>
- |
<assertion 2>
email: user@user.org
known: true
i����( t log( t PER_INSTANCE( t utilt snaps( /var/lib/cloud/instance/snapd.assertionsc C s� | s g } n t | t � s9 t d j d | � � � n t d g } d j | � } t | � d k ru t d � � n x. | D]&