-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add templates for configuring Docker #105
Conversation
features/docker/backup.pan
Outdated
include {'components/cron/config'}; | ||
|
||
"/software/components/cron/entries" = { | ||
SELF[length(SELF)]=nlist( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append(SELF, ...
features/docker/backup.pan
Outdated
"perms","0755", | ||
); | ||
|
||
include {'components/cron/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/backup.pan
Outdated
|
||
include {'components/filecopy/config'}; | ||
|
||
'/software/components/filecopy/services/{/usr/sbin/backup_docker_data}' = nlist( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dict
features/docker/backup.pan
Outdated
|
||
variable DOCKER_BACKUP_FREQUENCY?="30 11 * * *"; | ||
|
||
include {'components/filecopy/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/backup.pan
Outdated
|
||
variable DOCKER_BACKUP_MAIL_ERR=if(is_defined(DOCKER_BACKUP_MAIL_ERR)){"-mailerr "+SELF}else{""}; | ||
|
||
variable DOCKER_BACKUP_COMMAND?="/usr/sbin/backup_docker_data -dir "+DOCKER_BACKUP_DIR+" "+DOCKER_BACKUP_MAIL_OK+" "+DOCKER_BACKUP_MAIL_ERR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format(...)
features/docker/core.pan
Outdated
}; | ||
|
||
# Sysconfig for the docker service | ||
include {'components/sysconfig/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/el7/config.pan
Outdated
|
||
|
||
# Add package | ||
include {'components/spma/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/el7/config.pan
Outdated
|
||
|
||
# Sysconfig for the docker service | ||
include {'components/sysconfig/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/el7/config.pan
Outdated
'other_args' = DOCKER_SRV_OPTS; | ||
|
||
#Set the docker service to be running at boot | ||
include {'components/chkconfig/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/pipework.pan
Outdated
unique template features/docker/pipework; | ||
|
||
#Copy some needed files | ||
include {'components/filecopy/config'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curlies
features/docker/pipework.pan
Outdated
|
||
prefix '/software/components/filecopy/services/'; | ||
|
||
'{/usr/bin/pipework}/config' = file_contents('features/docker/pipework'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not put the path up with the prefix
?
features/docker/config.pan
Outdated
SELF[length(SELF)] = format('%s', DOCKER_YUM_REPOSITORY); | ||
repolist = SELF; | ||
if (is_defined(DOCKER_YUM_REPOSITORY)) { | ||
repolist = append(repolist, to_string(DOCKER_YUM_REPOSITORY)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or just append
, no temp variables or anything (but i know you don't like that way of using append)
features/docker/pipework
Outdated
@@ -0,0 +1,248 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you write this? no license, no author (and no rpm?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks a lot like an earlier version of https://github.com/jpetazzo/pipework/blob/master/pipework to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's licensed under APL2.0, so should be fine to add the source and mention it in the header that is apl
I'm a bit lost about what I need to do, if anything... Is the licensing issue the only thing remaining? |
@jouvin the license is the main issue remaining, yes. It would also be good to mention what the scripts are and where updated versions can be obtained. |
I really discovered this issue with the PR, I completely overlooked it! I don't know anything about the script causing the problem. May be @sartiran has an idea? |
Hi, I've to say I've no idea of which script you are talking about. Can you give me some more details? |
Hopefully, my last commit clarifies the licensing. |
As discussed at today's standup, this still has some outstanding lint issues, if they are quickly fixed this can be merged for 18.6. |
Yes, I completely missed how bad the state of the templates was... I just fixed it, took quite some time. They are used at GRIF&LAL, so I'm sure the contents is correct (we had a few fixes added since the PR was open). I'm waiting for the tests to see if panlint complains (I guess it will...) and I'll try to fix the remaining details later today. |
45c08ff
to
a58407b
Compare
panlint is happy 😄 and me too 😄 |
First attempt at providing templates to configure various parts of Docker service.