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

Provide switches and mods to allow for systems without internet access #69

Open
ljkimmel opened this issue Mar 27, 2020 · 3 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@ljkimmel
Copy link

This is a really good and extensive role but it is fully dependent upon internet access to work. The ability to disable items that require internet would be good. Otherwise, allowing to point to local files for the required items.

@tgadiev tgadiev self-assigned this Apr 22, 2020
@tgadiev
Copy link
Contributor

tgadiev commented Apr 22, 2020

@ljkimmel good idea!

Can you provide any additional details?

@tgadiev tgadiev added the enhancement New feature or request label Apr 22, 2020
@ljkimmel
Copy link
Author

Sure. For example your jenkins_epel_url, jenkins_rpm_repo_key and jenkins_rpm_repo_url are all statically defined in var/{{ansible_distribution}}.yml but you don't allow for them to be overrridden. Perhaps define them in {{ansible_distribution}}.yml with the leading double underscore (e.g. __jenkins_epel_url) and add logic to main.yml to use set_fact to override the value when one is provided in group_vars or host_vars using logic like this:

- name: Define jenkins_epel_url
  set_fact:
    jenkins_epel_url: "{{ __jenkins_epel_url }}"
  when: jenkins_epel_url is not defined

Also, I suppose people could configure PIP in offline environments to point to a locally configured repository but possibly you could add a task to take a URL as a variable and configure a custom/local repository in PIP for the user.

@ljkimmel
Copy link
Author

Also, I get the idea that Jenkins, by default, expects to be connected to the internet for plugin installation. I'm not sure the details of how to do it but possibly allow for the user to configure Jenkins for a local/offline Jenkins plugin repository. There are instructions on how to create the repository at: https://wiki.jenkins.io/display/JENKINS/Offline+Jenkins+Installation. But it doesn't describe how to configure Jenkins to point to the repository that you create.

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

No branches or pull requests

2 participants