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

Provision from custom repo #660

Open
urosgruber opened this issue Feb 17, 2019 · 4 comments
Open

Provision from custom repo #660

urosgruber opened this issue Feb 17, 2019 · 4 comments

Comments

@urosgruber
Copy link
Contributor

urosgruber commented Feb 17, 2019

I would like to simplify some provisioning code on our end and can see ix provisioning could work except it uses ix repo. Is there an option to change the repo or would this need to be a custom provisioning method?

@igalic
Copy link
Collaborator

igalic commented Feb 17, 2019

in the puppet provisioning plugin currently supports two modi for the source parameter: it can either be an absolute path on the host which is mounted into the jail, or it's a URL that will be cloned and processed by r10k

i can imagine a similar mode change in the iX plugin

@gronke
Copy link
Member

gronke commented Feb 17, 2019

@urosgruber you can build that yourself by inheriting from the ix-plugin provisioner and overwriting Provisioner.__get_url():

def __get_url(self, name: str) -> str:
return (
"https://raw.githubusercontent.com/freenas/iocage-ix-plugins"
f"/master/{name}.json"
)

@urosgruber
Copy link
Contributor Author

I'll try one, need to learn some Python basics first :) I'll create a PR when I'm done.

@urosgruber
Copy link
Contributor Author

While testing existing ix plugin I see that there are couple of issues in the code. I'll try to fix this first and maybe it's worth making the plugin better. Also it's very much different behaviour than the one from iocage

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

3 participants