Publish, remove or update a repo or a snapshot
create
- (default) Publish a repo or a snapshotdrop
- Drop a publicationswitch
- Switch published snapshot to a new snapshotupdate
- Update publication
Name | Types | Description | Default | Used with... |
---|---|---|---|---|
publish_name |
String | Publication name | <resource_name> | all |
type |
String | Publish type (snapshot or repo) | '' | :create |
component |
String | Component name to publish | [] | :create, :switch |
distribution |
String | Distribution name to publish | '' | :create, :switch |
architectures |
Array | Only mentioned architectures would be published | [] | :create |
endpoint |
String | An optional endpoint reference | '' | :create, :switch, :update |
prefix |
String | An optional prefix for publishing | '' | :create, :switch, :update |
timeout |
Integer | Timeout in seconds | 3600 | all |
Note: The "architectures" property will use the global configuration (settable via node['aptly']['architectures']) if you do not provide it for a particular repository here.
aptly_publish 'my_repo' do
type 'repo'
component %w(main contrib)
prefix 'my_company'
end
aptly_publish 'my_snapshot' do
type 'snapshot'
endpoint 's3'
prefix 'snap'
action :create
end
aptly_publish 'my_snapshot' do
prefix 'snap'
action :update
end
aptly_publish 'my_snapshot' do
prefix 'snap'
action :drop
end
aptly_publish 'my_snapshot' do
type 'snapshot'
prefix 'snap'
action :create
end
aptly_publish 'my_new_snapshot' do
type 'snapshot'
prefix 'snap'
distribution 'bionic' # distribution must be provided with :switch
action :switch
end
Serve an HTTP Service
run
- (default) Run the service
Name | Types | Description | Default | Used with... |
---|---|---|---|---|
listen |
String | Specify IP address about HTTP listening | '' (all interfaces) | :run |
port |
[Integer, String] | Publish type (snapshot or repo) | 8080 | :run |
user |
String | Run command as user | 'aptly' | :run |
group |
String | Run command as group | 'aptly' | :run |
aptly_serve 'Serve Aptly HTTP Service' do
port 8090
end
Serve an API Service
run
- (default) Run the service
Name | Types | Description | Default | Used with... |
---|---|---|---|---|
listen |
String | Specify IP address about HTTP listening | '' (all interfaces) | :run |
port |
[Integer, String] | Publish type (snapshot or repo) | 8080 | :run |
user |
String | Run command as user | 'aptly' | :run |
group |
String | Run command as group | 'aptly' | :run |
no_lock |
[true, false] | Don’t lock the database | false | :run |
aptly_api_serve 'Serve Aptly API Service' do
port 8091
no_lock true
end