Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ===== |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 2 | Usage |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 3 | ===== |
| 4 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 5 | The Aptly formula configures and installs the Aptly server and client. |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 6 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 7 | The available states include: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 8 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 9 | * ``aptly.server`` |
| 10 | * ``aptly.publisher`` |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 11 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 12 | The available metadata include: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 13 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 14 | * ``metadata.aptly.server.single`` |
| 15 | * ``metadata.aptly.client.publisher`` |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 16 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 17 | This file provides the sample configurations for different use cases. |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 18 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 19 | * Reclass examples: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 20 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 21 | * The basic Aptly server configuration without repositories or mirrors: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 22 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 23 | .. code-block:: yaml |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 24 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 25 | 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 Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 42 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 43 | * 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 Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 56 | |
| 57 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 58 | * Pillar examples: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 59 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 60 | * The Aptly server basic configuration: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 61 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 62 | .. 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" |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 73 | 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 Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 98 | |
| 99 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 100 | * The definition of the proxy environment variables in cron job for |
| 101 | mirroring script: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 102 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 103 | .. code-block:: yaml |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 104 | |
Filip Pytloun | 611af94 | 2017-11-21 15:36:45 +0100 | [diff] [blame] | 105 | aptly: |
| 106 | server: |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 107 | 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 Pytloun | 611af94 | 2017-11-21 15:36:45 +0100 | [diff] [blame] | 114 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 115 | **Read more** |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 116 | |
| 117 | * http://www.aptly.info/doc/configuration/ |