Skip to content

Latest commit

 

History

History
125 lines (96 loc) · 4.14 KB

aptly_publish.md

File metadata and controls

125 lines (96 loc) · 4.14 KB

aptly_publish

Publish, remove or update a repo or a snapshot

Actions

  • create - (default) Publish a repo or a snapshot
  • drop - Drop a publication
  • switch - Switch published snapshot to a new snapshot
  • update - Update publication

Properties

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.

Examples

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

'aptly_serve'

Serve an HTTP Service

Actions

  • run - (default) Run the service

Properties

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

Examples

aptly_serve 'Serve Aptly HTTP Service' do
  port 8090
end

'aptly_api_serve'

Serve an API Service

Actions

  • run - (default) Run the service

Properties

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

Examples

aptly_api_serve 'Serve Aptly API Service' do
  port 8091
  no_lock true
end