EOX GitLab Instance

Commit c65075fc authored by Stephan Meißl's avatar Stephan Meißl
Browse files

Adding pypirc. Switching tabs to spaces.

parent 77a66cfd
class buildtools { class buildtools {
class { 'repos': class { 'repos':
# add to the repositories stage # add to the repositories stage
stage => repositories stage => repositories
} }
$home = '/home/vagrant' $home = '/home/vagrant'
File { File {
owner => 'vagrant', owner => 'vagrant',
group => 'vagrant', group => 'vagrant',
mode => '0644', mode => '0644',
} }
package { 'rpm-build': ensure => 'latest' } package { 'rpm-build': ensure => 'latest' }
package { 'yum-utils': ensure => 'latest' } package { 'yum-utils': ensure => 'latest' }
package { 'mock': ensure => 'latest' } package { 'mock': ensure => 'latest' }
package { 'redhat-rpm-config': ensure => 'latest' } package { 'redhat-rpm-config': ensure => 'latest' }
package { 'make': ensure => 'latest' } package { 'make': ensure => 'latest' }
package { 'gcc': ensure => 'latest' } package { 'gcc': ensure => 'latest' }
package { 'gcc-c++': ensure => 'latest' } package { 'gcc-c++': ensure => 'latest' }
file { $home: ensure => directory } file { $home: ensure => directory }
file { "${home}/.rpmmacros": file { "${home}/.rpmmacros":
ensure => file, ensure => file,
content => "%_topdir ${home}/rpmbuild\n%__os_install_post %{nil}\n", content => "%_topdir ${home}/rpmbuild\n%__os_install_post %{nil}\n",
} }
file { "${home}/rpmbuild": file { "${home}/rpmbuild":
ensure => directory, ensure => directory,
} }
file {[ "${home}/rpmbuild/BUILD", file {[ "${home}/rpmbuild/BUILD",
"${home}/rpmbuild/BUILDROOT", "${home}/rpmbuild/BUILDROOT",
"${home}/rpmbuild/RPMS", "${home}/rpmbuild/RPMS",
"${home}/rpmbuild/SOURCES", "${home}/rpmbuild/SOURCES",
"${home}/rpmbuild/SPECS", "${home}/rpmbuild/SPECS",
"${home}/rpmbuild/SRPMS" ]: "${home}/rpmbuild/SRPMS" ]:
ensure => directory, ensure => directory,
mode => '0775' mode => '0775'
}} }
file { "${home}/.pypirc":
ensure => file,
content => "[distutils]\nindex-servers =\n pypi\n\n[pypi]\nusername:<USER>\npassword:<PW>\n",
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment