File: snap.rst

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (42 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.. _cce-snap:

Manage snaps
************

These examples will show you how to set up ``snapd`` and install snap packages.

For a full list of keys, refer to the :ref:`snap module <mod_cc_snap>` schema.

General usage
=============

.. literalinclude:: ../../../module-docs/cc_snap/example1.yaml
   :language: yaml
   :linenos:

Omitting the snap command
=========================

For convenience, the ``snap`` command can be omitted when specifying commands
as a list, and ``'snap'`` will automatically be prepended. The following
commands are all equivalent:

.. literalinclude:: ../../../module-docs/cc_snap/example2.yaml
   :language: yaml
   :linenos:

Using lists
===========

You can use a list of commands:

.. literalinclude:: ../../../module-docs/cc_snap/example3.yaml
   :language: yaml
   :linenos:

And you can also use a list of assertions:

.. literalinclude:: ../../../module-docs/cc_snap/example4.yaml
   :language: yaml
   :linenos: