All Projects → subuk → awx-rpm

subuk / awx-rpm

Licence: other
RPM specs for ansible-awx project

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to awx-rpm

Docker Ce Packaging
Packaging scripts for Docker CE
Stars: ✭ 111 (+170.73%)
Mutual labels:  rpm
Go Rpm
A native implementation of the RPM file specification in Go
Stars: ✭ 137 (+234.15%)
Mutual labels:  rpm
libdnf
Package management library.
Stars: ✭ 157 (+282.93%)
Mutual labels:  rpm
Bodhi
Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.
Stars: ✭ 114 (+178.05%)
Mutual labels:  rpm
Aliddns
aliyun ddns for golang【阿里云DDNS服务,用来将自己的动态IP同步到自己的域名解析服务器,安装方便,配置简单,默认支持Linux和MacOS以后台服务方式持续运行】
Stars: ✭ 136 (+231.71%)
Mutual labels:  rpm
Prometheus Rpm
Prometheus RPM Packages
Stars: ✭ 190 (+363.41%)
Mutual labels:  rpm
Rpm Haproxy
HAproxy RPM spec and builds for CentOS 6/7
Stars: ✭ 103 (+151.22%)
Mutual labels:  rpm
spec-cleaner
spec-cleaner
Stars: ✭ 26 (-36.59%)
Mutual labels:  rpm
Clickhouse Rpm Install
How to install clickhouse RPM packages
Stars: ✭ 136 (+231.71%)
Mutual labels:  rpm
obs-service-go modules
OBS Source Service to download, verify, and vendor Go module dependency sources
Stars: ✭ 18 (-56.1%)
Mutual labels:  rpm
Discord
RPM Package for discord
Stars: ✭ 122 (+197.56%)
Mutual labels:  rpm
Rpmvenv
RPM packager for Python virtualenv.
Stars: ✭ 128 (+212.2%)
Mutual labels:  rpm
Nodejs Rpm
node.js rpm spec
Stars: ✭ 199 (+385.37%)
Mutual labels:  rpm
Redishappy
Redis Sentinel high availabillity daemon
Stars: ✭ 111 (+170.73%)
Mutual labels:  rpm
wacom-gui
Python/PyQt Wacom GUI for KDE
Stars: ✭ 113 (+175.61%)
Mutual labels:  rpm
Sbt Native Packager
sbt Native Packager
Stars: ✭ 1,480 (+3509.76%)
Mutual labels:  rpm
Clamtk
An easy to use, light-weight, on-demand virus scanner for Linux systems
Stars: ✭ 151 (+268.29%)
Mutual labels:  rpm
rabbitmq-server-release
RabbitMQ packaging and release engineering bits that do not belong to the Concourse pipelines.
Stars: ✭ 13 (-68.29%)
Mutual labels:  rpm
holo-build
Cross-distribution system package compiler
Stars: ✭ 43 (+4.88%)
Mutual labels:  rpm
rpmlint
Tool for checking common errors in rpm packages
Stars: ✭ 112 (+173.17%)
Mutual labels:  rpm

AWX-RPM

Build Status

Fat RPMs for ansible-awx project.

Tested distributions:

  • Amazon linux 2017.3
  • Centos 7

How to build RPM

  • Grab source archive and put it in the repository root (see below how to do it)
  • Change version in awx.spec
  • Run your favorite rpm build process or use bundled scripts (build with docker): ./build.sh [amazonlinux-2017.03|centos-7]

How to build source archive

git clone [email protected]:ansible/awx.git
cd awx
git clone [email protected]:ansible/awx-logos.git

docker run -v `pwd`:/awx --rm -i centos:7 /bin/bash <<EOF
yum install -y epel-release && yum install -y bzip2 gcc-c++ git gettext make python-pip
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum install -y nodejs
cd /awx/
make sdist
EOF

Installation

Install awx rpm package

yum install ./awx-XXX.x86_64.rpm

Install rabbitmq and postgresql96 server (example for centos7)

yum install -y epel-release
yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install -y rabbitmq-server postgresql96-server
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl enable rabbitmq-server
systemctl start rabbitmq-server
systemctl enable postgresql-9.6
systemctl start postgresql-9.6

Create postgresql database and user for awx

sudo -u postgres createuser -S awx
sudo -u postgres createdb -O awx awx

Run sql migrations (takes a few minutes)

sudo -u awx /opt/awx/bin/awx-manage migrate

Initialize application

echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | sudo -u awx /opt/awx/bin/awx-manage shell
sudo -u awx /opt/awx/bin/awx-manage create_preload_data
sudo -u awx /opt/awx/bin/awx-manage provision_instance --hostname=$(hostname)
sudo -u awx /opt/awx/bin/awx-manage register_queue --queuename=tower --hostnames=$(hostname)

Configure nginx, use this example from awx repository

https://github.com/ansible/awx/blob/devel/installer/image_build/files/nginx.conf

Start and enable services (again, example for centos7)

systemctl start awx-cbreceiver
systemctl start awx-celery-beat
systemctl start awx-celery-worker
systemctl start awx-channels-worker
systemctl start awx-daphne
systemctl start awx-web

systemctl enable awx-cbreceiver
systemctl enable awx-celery-beat
systemctl enable awx-celery-worker
systemctl enable awx-channels-worker
systemctl enable awx-daphne
systemctl enable awx-web
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].