Coder Social home page Coder Social logo

capyroto / foremansible Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 3.0 38 KB

A sensible Ansible playbook to deploy Foreman (theforeman.org)

Home Page: https://capyroto.github.io/foremansible/

License: GNU General Public License v3.0

ansible foreman provisioning devops

foremansible's Introduction

foremansible

A sensible Ansible playbook to deploy Foreman (theforeman.org)

Preparation

  • Clone the repository with the command below:
$ git clone https://github.com/capyroto/foremansible.git
$ cd foremansible

To be able to run this task, make sure to add your SSH pubkey as root user. Note that is expected a pre-existing ssh key pairs to be automatically copied to the server.

Create an inventory file with the contents below:

$ cd ansible
$ vim inventory
[foreman_servers]
192.168.0.1

Note: On Debian systems, by default the root user is not allowed to connect remotely.

$ echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
$ /etc/init.d/ssh restart

Then execute the pre-requisites:

$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@<SERVER>
$ ansible-playbook -u root --tags="prereq_as_root" main.yml

foremansible's People

Contributors

tchellomello avatar phess avatar waldirio avatar

Stargazers

 avatar Allan Christoffersen avatar

Watchers

James Cloos avatar  avatar  avatar

foremansible's Issues

subman optional is throwing errors

TASK [include_tasks] ***************************************************************************************************************
included: /home/mdemello/devel/foremansible/ansible/meta_task/../tasks/_prep-repos-Debian.yml for 192.168.100.194
fatal: [192.168.100.137]: FAILED! => {"reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/home/mdemello/devel/foremansible/ansible/tasks/_prep-repos-RedHat.yml': line 26, column 2, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Enable Optional Repository on RHEL7\n ^ here\n\nexception type: <class 'yaml.parser.ParserError'>\nexception: did not find expected <document start>\n  in \"<unicode string>\", line 26, column 2"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.