Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ammendments potentially needed #2

Open
ghost opened this issue Mar 18, 2021 · 1 comment
Open

Some ammendments potentially needed #2

ghost opened this issue Mar 18, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 18, 2021

Hello,
first at all, I will thank you so much for sharing this project that makes possible to easily deploy a nice devops infrastructure :)

I have found some things aren't unfortunately working in your project if you try to deploy it in the present days.

Let me describe them.

In addition, I would like to make your some suggestions that in my humble opinion, it enhances the deployment of the environment :)

Let's start!

In config_ansible.sh and nfs_server.yaml, it is needed to replace ~/artefacts/ by ~/, because this folder doesn't exist in the ansible box.

Taking into account the Oracle Java 8 is no longer available to download publicly, I will suggest you to add the following task in the beginning of install_jenkins.yml, before installing jenkins (and don't run the install_java.yml playbook

- name: Install Java
      apt:
        name: openjdk-11-jdk
        state: present

I would recommend you to use the bento/ubuntu-20.04 box instead. Using a newer ubuntu release, prevents some issues to came up.
If Ubuntu 20.04 (focal) is used, it must be modified accordingly install_docker.yaml playbook and the follwing lines commented/removed in the nfs_server.yml playbook.


#- name: make sure the mount drive has a filesystem
    #  filesystem: fstype=ext4 dev={{ mountable_share_drive | default('/dev/sda1') }}
    #  tags: nfs_server
      
    #- name: set mountpoints
    #  mount: name={{ nfsexport }} src={{ mountable_share_drive | default('/dev/sda1') }} fstype=auto opts=defaults,nobootwait dump=0 passno=2 state=mounted
    #  tags: nfs_server

In addition, I would recommend you to add the following task in the beginning of all playbooks. It avoids any issue regarding the yum packages.

    - name: update the apt cache
      apt:
        update_cache: yes

Finally, in order to don't include the internal .vagrant folder to be considered by Git, I would be to create a .gitignore file with the following content

#General
.vagrant/

Many thanks!

KR,
Pablo

@ernesen
Copy link
Owner

ernesen commented Mar 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant