gitea
: main class includes all other classes
gitea::config
: manages configuration filesgitea::install
: download and install giteagitea::service
: manage service stategitea::service::user
: creates gitea service user
gitea::custom::file
: gitea custom file
gitea::archive_resource
: Returns source, checksum, and checksum_type params for downloading a gitea release with the archive resourcegitea::installed_version
: Returns the installed gitea version
Install Gitea, a painless self-hosted Git service. Review module hiera for default parameter values.
- See also
include gitea
class { 'gitea':
ensure => 'installed',
}
class { 'gitea':
ensure => 'latest',
}
class { 'gitea':
ensure => '1.18.0',
}
class { 'gitea':
ensure => '1.17.0',
checksum => 'bc4a8e1f5d5f64d4be2e50c387de08d07c062aecdba2f742c2f61c20accfcc46',
}
class { 'gitea':
ensure => 'https://codeberg.org/forgejo/forgejo/releases/download/v1.21.6-0/forgejo-1.21.6-0-linux-amd64',
checksum => 'e86f446236a287b9ba2c65f8ff7b0a9ea4f451a5ffc3134f416f751e1eecf97c',
}
The following parameters are available in the gitea
class:
manage_user
manage_group
manage_home
owner
group
umask
home
proxy
base_url
ensure
checksum
work_path
default_configuration
custom_configuration
manage_service
service_epp
tmpfile_epp
robots_txt
run_path
Data type: Boolean
Should we manage provisioning the user?
Data type: Boolean
Should we manage provisioning the group?
Data type: Boolean
Should we manage provisioning the home directory?
Data type: String
The user owning gitea
Data type: String
The group owning gitea
Data type: Pattern[/[0-7]{4}/]
UMask of service process
Data type: Optional[String]
Qualified path to the user home directory
Data type: Optional[String]
Download gitea release via specified proxy
Data type: String
Download base URL
Data type: Variant[Pattern[/\d+\.\d+\.\d+/],Enum['latest','installed'],Stdlib::HTTPUrl]
Version of gitea to install, 'installed', 'latest', or URL a to release binary
Data type: Optional[String]
Checksum for the release binary
Default value: undef
Data type: String
Target directory for the gitea installation
Data type: Hash
Settings for configuring Gitea. A simple working configuration is provided (see hiera). Generally this parameter should NOT be provided. Instead set the custom_configuration parameter to override built-in defaults.
Data type: Hash
Override default configuration for configuring Gitea.
The value is merged with the default_configuration
parameter value.
Data type: Boolean
Should we manage a service definition for Gitea?
Data type: String
Path to service epp template file
Data type: String
Path to tmpfile epp template file
Data type: String
Allows to provide a http://www.robotstxt.org/ file to restrict crawling
Data type: String
Path to service runtime path
Manage files in the Gitea CustomPath
folder
gitea::custom::file { 'public/css/custom.css':
content => file('profile/gitea/custom.css'),
}
gitea::custom::file { 'public/img/logo.svg':
source => 'puppet:///modules/profile/gitea/logo.svg',
}
The following parameters are available in the gitea::custom::file
defined type:
Data type: Optional[Enum['file','absent']]
Passed to File resource
Default value: undef
Data type: Variant[String,Undef]
Passed to File resource
Default value: undef
Data type: Variant[String,Undef]
Passed to File resource
Default value: undef
Data type: Variant[Boolean,Enum['remote']]
Passed to File resource
Default value: false
Type: Ruby 4.x API
Returns source, checksum, and checksum_type params for downloading a gitea release with the archive resource
gitea::archive_resource(String $gitea_bin, String $base_url, Hash $checksums, String $version, Optional[Variant[String,Undef]] $checksum_value)
The gitea::archive_resource function.
Returns: Hash
Data type: String
Data type: String
Data type: Hash
Data type: String
Data type: Optional[Variant[String,Undef]]
Type: Ruby 4.x API
Returns the installed gitea version
The gitea::installed_version function.
Returns: Variant[String,Undef]
Data type: String