Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
1d0e32da
Commit
1d0e32da
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "fix collectd dockerfile"
parents
01250d93
9ed49df4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/collectd/Dockerfile.j2
+0
-3
0 additions, 3 deletions
docker/collectd/Dockerfile.j2
docker/collectd/collectd_sudoers
+0
-1
0 additions, 1 deletion
docker/collectd/collectd_sudoers
docker/collectd/extend_start.sh
+5
-3
5 additions, 3 deletions
docker/collectd/extend_start.sh
with
5 additions
and
7 deletions
docker/collectd/Dockerfile.j2
+
0
−
3
View file @
1d0e32da
...
...
@@ -8,13 +8,10 @@ MAINTAINER {{ maintainer }}
] %}
{{ macros.install_packages(collectd_packages | customizable("packages")) }}
COPY collectd_sudoers /etc/sudoers.d/kolla_collectd_sudoers
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN useradd -r -m collectd \
&& chmod 755 /usr/local/bin/kolla_extend_start \
&& chmod 750 /etc/sudoers.d \
&& chmod 440 /etc/sudoers.d/kolla_collectd_sudoers \
&& usermod -a -G kolla collectd \
&& chown -R collectd /var/lib/collectd \
&& chown -R collectd /etc/collectd* \
...
...
This diff is collapsed.
Click to expand it.
docker/collectd/collectd_sudoers
deleted
100644 → 0
+
0
−
1
View file @
01250d93
%kolla ALL=(root) NOPASSWD: /bin/chown collectd\: /var/lib/collectd/, /usr/bin/chown collectd\: /var/lib/collectd/
This diff is collapsed.
Click to expand it.
docker/collectd/extend_start.sh
+
5
−
3
View file @
1d0e32da
#!/bin/bash
# Only update permissions if permissions need to be updated
if
[[
$(
stat
-c
%U:%G /var/lib/collectd
)
!=
"collectd:collectd"
]]
;
then
sudo chown
collectd: /var/lib/collectd
if
[[
!
-d
"/var/log/kolla/collectd"
]]
;
then
mkdir
-p
/var/log/kolla/collectd
fi
if
[[
$(
stat
-c
%a /var/log/kolla/collectd
)
!=
"755"
]]
;
then
chmod
755 /var/log/kolla/collectd
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment