blob: e099f1150ce5683804051afc16f4783e70c6a096 [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"
73 sources: false
74 publisher:
75 component: mycomponent
76 distributions:
77 - nightly/trusty
78
79 * The Aptly server mirrors configuration:
80
81 .. code-block:: yaml
82
83 aptly:
84 server:
85 mirror:
86 mirror_name:
87 source: http://example.com/debian
88 distribution: xenial
89 components: main
90 architectures: amd64
91 gpgkeys: 460F3999
92 filter: "!(Name (% *-dbg))"
93 filter_with_deps: true
94 publisher:
95 component: example
96 distributions:
97 - xenial/repo/nightly
98 - "s3:aptcdn:xenial/repo/nightly"
Filip Pytloun95347292015-10-06 16:28:31 +020099
100
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300101 * The definition of the proxy environment variables in cron job for
102 mirroring script:
Filip Pytloun95347292015-10-06 16:28:31 +0200103
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300104 .. code-block:: yaml
Filip Pytloun95347292015-10-06 16:28:31 +0200105
Filip Pytloun611af942017-11-21 15:36:45 +0100106 aptly:
107 server:
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300108 enabled: true
109 ...
110 mirror_update:
111 enabled: true
112 http_proxy: "http://1.2.3.4:8000"
113 https_proxy: "http://1.2.3.4:8000"
114 ...
Filip Pytloun611af942017-11-21 15:36:45 +0100115
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300116**Read more**
Filip Pytloun95347292015-10-06 16:28:31 +0200117
118* http://www.aptly.info/doc/configuration/
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100119
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300120**Documentation and bugs**
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100121
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300122* http://salt-formulas.readthedocs.io/
123 Learn how to install and update salt-formulas
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100124
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300125* https://github.com/salt-formulas/salt-formula-ntp/issues
126 In the unfortunate event that bugs are discovered, report the issue to the
127 appropriate issue tracker. Use the Github issue tracker for a specific salt
128 formula
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100129
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300130* https://launchpad.net/salt-formulas
131 For feature requests, bug reports, or blueprints affecting the entire
132 ecosystem, use the Launchpad salt-formulas project
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100133
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300134* https://launchpad.net/~salt-formulas-users
135 Join the salt-formulas-users team and subscribe to mailing list if required
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100136
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300137* https://github.com/salt-formulas/salt-formula-aptly
138 Develop the salt-formulas projects in the master branch and then submit pull
139 requests against a specific formula
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100140
OlgaGusarenko7eef7852018-06-28 13:58:18 +0300141* #salt-formulas @ irc.freenode.net
142 Use this IRC channel in case of any questions or feedback which is always
143 welcome