EOX GitLab Instance

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

Merge branch 'pypi' of /home/git/repositories/vagrant/builder_rpm

parents 77a66cfd c65075fc
class buildtools {
class { 'repos':
# add to the repositories stage
stage => repositories
}
class { 'repos':
# add to the repositories stage
stage => repositories
}
$home = '/home/vagrant'
$home = '/home/vagrant'
File {
owner => 'vagrant',
group => 'vagrant',
mode => '0644',
}
File {
owner => 'vagrant',
group => 'vagrant',
mode => '0644',
}
package { 'rpm-build': ensure => 'latest' }
package { 'yum-utils': ensure => 'latest' }
package { 'mock': ensure => 'latest' }
package { 'redhat-rpm-config': ensure => 'latest' }
package { 'make': ensure => 'latest' }
package { 'gcc': ensure => 'latest' }
package { 'gcc-c++': ensure => 'latest' }
package { 'rpm-build': ensure => 'latest' }
package { 'yum-utils': ensure => 'latest' }
package { 'mock': ensure => 'latest' }
package { 'redhat-rpm-config': ensure => 'latest' }
package { 'make': ensure => 'latest' }
package { 'gcc': ensure => 'latest' }
package { 'gcc-c++': ensure => 'latest' }
file { $home: ensure => directory }
file { "${home}/.rpmmacros":
ensure => file,
content => "%_topdir ${home}/rpmbuild\n%__os_install_post %{nil}\n",
}
file { "${home}/rpmbuild":
ensure => directory,
}
file {[ "${home}/rpmbuild/BUILD",
"${home}/rpmbuild/BUILDROOT",
"${home}/rpmbuild/RPMS",
"${home}/rpmbuild/SOURCES",
"${home}/rpmbuild/SPECS",
"${home}/rpmbuild/SRPMS" ]:
ensure => directory,
mode => '0775'
}}
file { $home: ensure => directory }
file { "${home}/.rpmmacros":
ensure => file,
content => "%_topdir ${home}/rpmbuild\n%__os_install_post %{nil}\n",
}
file { "${home}/rpmbuild":
ensure => directory,
}
file {[ "${home}/rpmbuild/BUILD",
"${home}/rpmbuild/BUILDROOT",
"${home}/rpmbuild/RPMS",
"${home}/rpmbuild/SOURCES",
"${home}/rpmbuild/SPECS",
"${home}/rpmbuild/SRPMS" ]:
ensure => directory,
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