blob: cccceadabb7d7a4d082b3457af1a02b038847e69 [file] [log] [blame]
Filip Pytloun95347292015-10-06 16:28:31 +02001=====
OlgaGusarenko7eef7852018-06-28 13:58:18 +03002Usage
Filip Pytloun95347292015-10-06 16:28:31 +02003=====
4
OlgaGusarenko7eef7852018-06-28 13:58:18 +03005The Aptly formula configures and installs the Aptly server and client.
Filip Pytloun95347292015-10-06 16:28:31 +02006
OlgaGusarenko7eef7852018-06-28 13:58:18 +03007The available states include:
Filip Pytloun95347292015-10-06 16:28:31 +02008
OlgaGusarenko7eef7852018-06-28 13:58:18 +03009* ``aptly.server``
10* ``aptly.publisher``
Filip Pytloun95347292015-10-06 16:28:31 +020011
OlgaGusarenko7eef7852018-06-28 13:58:18 +030012The available metadata include:
Filip Pytloun95347292015-10-06 16:28:31 +020013
OlgaGusarenko7eef7852018-06-28 13:58:18 +030014* ``metadata.aptly.server.single``
15* ``metadata.aptly.client.publisher``
Filip Pytloun95347292015-10-06 16:28:31 +020016
OlgaGusarenko7eef7852018-06-28 13:58:18 +030017This file provides the sample configurations for different use cases.
Filip Pytloun95347292015-10-06 16:28:31 +020018
OlgaGusarenko7eef7852018-06-28 13:58:18 +030019* Reclass examples:
Filip Pytloun95347292015-10-06 16:28:31 +020020
OlgaGusarenko7eef7852018-06-28 13:58:18 +030021 * The basic Aptly server configuration without repositories or mirrors:
Filip Pytloun95347292015-10-06 16:28:31 +020022
OlgaGusarenko7eef7852018-06-28 13:58:18 +030023 .. code-block:: yaml
Filip Pytloun95347292015-10-06 16:28:31 +020024
OlgaGusarenko7eef7852018-06-28 13:58:18 +030025 classes:
26 - service.aptly.server.single
27 parameters:
28 aptly:
29 server:
30 enabled: true
31 secure: true
32 gpg_keypair_id: A76882D3
33 gpg_passphrase:
34 gpg_public_key: |
35 -----BEGIN PGP PUBLIC KEY BLOCK-----
36 Version: GnuPG v1
37 ...
38 gpg_private_key: |
39 -----BEGIN PGP PRIVATE KEY BLOCK-----
40 Version: GnuPG v1
41 ...
Filip Pytloun95347292015-10-06 16:28:31 +020042
OlgaGusarenko7eef7852018-06-28 13:58:18 +030043 * The definition of an s3 endpoint:
44
45 .. code-block:: yaml
46
47 parameters:
48 aptly:
49 server:
50 endpoint:
51 mys3endpoint:
52 engine: s3
53 awsAccessKeyID: xxxx
54 awsSecretAccessKey: xxxx
55 bucket: test
Filip Pytloun95347292015-10-06 16:28:31 +020056
57
OlgaGusarenko7eef7852018-06-28 13:58:18 +030058* Pillar examples:
Filip Pytloun95347292015-10-06 16:28:31 +020059
OlgaGusarenko7eef7852018-06-28 13:58:18 +030060 * The Aptly server basic configuration:
Filip Pytloun95347292015-10-06 16:28:31 +020061
OlgaGusarenko7eef7852018-06-28 13:58:18 +030062 .. code-block:: yaml
63
64 aptly:
65 server:
66 enabled: true
67 repo:
68 myrepo:
69 distribution: trusty
70 component: main
71 architectures: amd64
72 comment: "Custom components"
OlgaGusarenko7eef7852018-06-28 13:58:18 +030073 publisher:
74 component: mycomponent
75 distributions:
76 - nightly/trusty
77
78 * The Aptly server mirrors configuration:
79
80 .. code-block:: yaml
81
82 aptly:
83 server:
84 mirror:
85 mirror_name:
86 source: http://example.com/debian
87 distribution: xenial
88 components: main
89 architectures: amd64
90 gpgkeys: 460F3999
91 filter: "!(Name (% *-dbg))"
92 filter_with_deps: true
93 publisher:
94 component: example
95 distributions:
96 - xenial/repo/nightly
97 - "s3:aptcdn:xenial/repo/nightly"
Filip Pytloun95347292015-10-06 16:28:31 +020098
99
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300100 * The definition of the proxy environment variables in cron job for
101 mirroring script:
Filip Pytloun95347292015-10-06 16:28:31 +0200102
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300103 .. code-block:: yaml
Filip Pytloun95347292015-10-06 16:28:31 +0200104
Filip Pytloun611af942017-11-21 15:36:45 +0100105 aptly:
106 server:
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300107 enabled: true
108 ...
109 mirror_update:
110 enabled: true
111 http_proxy: "http://1.2.3.4:8000"
112 https_proxy: "http://1.2.3.4:8000"
113 ...
Filip Pytloun611af942017-11-21 15:36:45 +0100114
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300115**Read more**
Filip Pytloun95347292015-10-06 16:28:31 +0200116
117* http://www.aptly.info/doc/configuration/