Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
salt-state
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FFFFM
salt-state
Commits
95821cdb
Commit
95821cdb
authored
4 years ago
by
skorpy
Browse files
Options
Downloads
Patches
Plain Diff
gitlab-ci: add varnish lint
parent
5946906c
No related branches found
Branches containing commit
No related tags found
1 merge request
!484
Grafana: Use Docker
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
grafana/files/varnish-grafana.vcl
+1
-0
1 addition, 0 deletions
grafana/files/varnish-grafana.vcl
varnish/init.sls
+3
-0
3 additions, 0 deletions
varnish/init.sls
with
17 additions
and
0 deletions
.gitlab-ci.yml
+
13
−
0
View file @
95821cdb
...
...
@@ -31,6 +31,19 @@ lint:yamllint:
stage
:
lint
script
:
yamllint .
lint:varnish
:
image
:
name
:
docker.chaos.expert/ffffm/docker-varnish
services
:
-
name
:
grafana/grafana
alias
:
grafana
stage
:
lint
script
:
-
varnishd -C -f $CI_BUILDS_DIR/$CI_PROJECT_PATH/grafana/files/varnish-grafana.vcl
rules
:
-
changes
:
-
grafana/files/varnish-grafana.vcl
highstate:debug
:
image
:
docker.chaos.expert/ffffm/docker-salt-minion:latest
stage
:
highstate
...
...
This diff is collapsed.
Click to expand it.
grafana/files/varnish-grafana.vcl
+
1
−
0
View file @
95821cdb
...
...
@@ -12,6 +12,7 @@ sub vcl_recv {
if
(
req.method
!=
"GET"
&&
req.method
!=
"HEAD"
)
{
return
(
pass
);
}
# Goodbye incoming cookies:
unset
req.http.Cookie
;
unset
req.http.Accept-Language
;
...
...
This diff is collapsed.
Click to expand it.
varnish/init.sls
+
3
−
0
View file @
95821cdb
...
...
@@ -10,6 +10,9 @@ varnish:
- file: /etc/apt/sources.list.d/varnish.list
- clean_file: true
pkg.installed:
- pkgs:
- varnish
- varnish-dev
- version: '6.4.*'
service.running:
- enable: True
...
...
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