Code Monkey home page Code Monkey logo

ansible-hana-examples's People

Contributors

abradshaw avatar andbuick avatar cbolz avatar dmesser avatar kyleabenson avatar rhmk avatar shwu1982 avatar tbludau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-hana-examples's Issues

preconfigure sap-mount-media

task: sap-mount-media.yml

  • file:
    name: "{{ installroot }}"
    state: directory
    owner: root
    group: root

This tasks fails because the installroot is already NFS mounted

base-host-setup reorg is needed

this role needs to be reorganized to be more granular, such as registration, disk-setup etc. in separate roles instead of this single one
A lot might be replaced by system rules should use the newly introduced system roles instead of this suboptimal scripting,

Build up easy Example-Usage

Documentate a easy way for a deployment of an automatical Example Deployment.
f.e. using Terraform:
export AWS_ID AWS_KEY
terraform apply
ansible-playbook ....
terraform destroy
finished

Cleanup of system registration in base_host_setup

Base Host setup

There is a lot of commented lines in this role. Comements should be moved from main.yml into the role README.md

Task: Enable Debugging
Why do we set debug to 3 on one, empty task? I do not see debug msg's anywhere else in base-host-setup

Include statements
Both optional
We call both system-registration-part1.yml & RH7 | RH6 based on conditional check_repos and system release
What about the RHEL 7.2 task being commented out?
Can we enforce a desired state here?
Can we set repos based on release?
What about task 'reset all repositories'? Shouldn't this be all that the system is configured for?

Lots of conditional logic. Things like 'when check_repos'.. doesn't need to be setup.
We should confirm repositories are configured and if not, pass an option to run a config for RHSM

Consider abstracting paths from deployment.yml

Currently there is a lot of hardcoding of paths in deployment > tasks > deployment.yml, for example:

- name: create usr sap directory
  file:
    path: "/usr/sap/{{ item.value.hana_sid|upper }}"
    state: directory
  with_dict: "{{ instances }}"

I count that path 3 times in that file, so we could do something like:

var: 
  sap_usr_path: /usr/sap/{{ item.value.hana_sid|upper }}

This would improve legibility and reduce the number of manual paths, so it becomes easier to modify in the future if necessary. This is generally a good practice from a role reuse perspective.

Restructure documentation

Currently it looks like there are two locations for usage -- the general README.md and under docs/hana-host.txt

Generally when publishing playbooks with nested roles, it's good to provide a high level document as README.md and then provide a README for each respective role that explains it's purpose.

We also don't point users from the current README to docs/hana-host.txt, so at the very least if not changing the structure the items under docs/ should be updated.

preconfigure

These task should be setup compliant to redhat system roles

Subscription checks very complicated

Need three roles:
Self-Configured integration
Satellite 6 Integration
subscription-manager integratation

Checks:
Check if packages available from needed repositorys.

For Demo Scenario:
Use RedHat Login as variable
execute following commands (example):
subscription-manager clean
subscription-manager remove --all
subscription-manager register
rm -rf /etc/yum.repos.d/*
rm -fr /var/cache/yum/*
yum clean all

subscription-manager list --available --all

subscription-manager attach --pool=xxx
subscription-manager release --set=7.2
subscription-manager repos --disable=rhel-7-server-rpms
subscription-manager repos --enable=rhel-7-server-eus-rpms

Deltarpm is necessary for the following rpm installation ?!?!

yum install -y deltarpm

service firewalld disable failed when firewall is not installed

check if package firewalld is installed
hana-host/tasks/RedHat7/service-configuration.yml:- name: disable firewalld
hana-host/tasks/RedHat7/service-configuration.yml: service: name=firewalld state=stopped enabled=no
preconfigure/tasks/RedHat7/service-configuration.yml:- name: disable firewalld
preconfigure/tasks/RedHat7/service-configuration.yml: service: name=firewalld state=stopped enabled=no

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.