Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ics-ans-role-tinyproxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
Alex Thibault-Ferial
ics-ans-role-tinyproxy
Commits
d709e32c
Commit
d709e32c
authored
2 years ago
by
Amir Forsat
Browse files
Options
Downloads
Patches
Plain Diff
Install latest version from Artifactory
JIRA INFRA-5504 #action In Progress
parent
d94c45a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
molecule/default/tests/test_default.py
+1
-1
1 addition, 1 deletion
molecule/default/tests/test_default.py
tasks/main.yml
+9
-1
9 additions, 1 deletion
tasks/main.yml
templates/tinyproxy.conf
+1
-1
1 addition, 1 deletion
templates/tinyproxy.conf
with
11 additions
and
3 deletions
molecule/default/tests/test_default.py
+
1
−
1
View file @
d709e32c
...
@@ -9,7 +9,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
...
@@ -9,7 +9,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def
test_tinyproxy_is_installed
(
host
):
def
test_tinyproxy_is_installed
(
host
):
tinyproxy
=
host
.
package
(
"
tinyproxy
"
)
tinyproxy
=
host
.
package
(
"
tinyproxy
"
)
assert
tinyproxy
.
is_installed
assert
tinyproxy
.
is_installed
assert
tinyproxy
.
version
.
startswith
(
"
1.
8.3
"
)
assert
tinyproxy
.
version
.
startswith
(
"
1.
11.1
"
)
def
test_tinyproxy_running_and_enabled
(
host
):
def
test_tinyproxy_running_and_enabled
(
host
):
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
9
−
1
View file @
d709e32c
---
---
-
name
:
Install tinyproxy
-
name
:
Install tinyproxy
yum
:
yum
:
name
:
tinyproxy
name
:
https://artifactory.esss.lu.se/artifactory/rpm-ics/centos/7/x86_64/tinyproxy-1.11.1-0.x86_64.rpm
state
:
present
state
:
present
-
name
:
Create directory for PID file
file
:
path
:
/run/tinyproxy
state
:
directory
owner
:
tinyproxy
group
:
tinyproxy
mode
:
'
0755'
-
name
:
Copy error html files
-
name
:
Copy error html files
template
:
template
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
...
...
This diff is collapsed.
Click to expand it.
templates/tinyproxy.conf
+
1
−
1
View file @
d709e32c
...
@@ -47,7 +47,7 @@ FilterDefaultDeny {{ tinyproxy_filtering.default_deny }}
...
@@ -47,7 +47,7 @@ FilterDefaultDeny {{ tinyproxy_filtering.default_deny }}
{%
if
tinyproxy_upstream
%}
{%
if
tinyproxy_upstream
%}
{%
for
proxy
in
tinyproxy_upstream_proxies
%}
{%
for
proxy
in
tinyproxy_upstream_proxies
%}
Upstream
{{
proxy
.
address
}}:{{
proxy
.
port
}} {%
if
proxy
.
url
is
defined
%}
"{{ proxy.url }}"
{%
endif
%}
Upstream
http
{{
proxy
.
address
}}:{{
proxy
.
port
}} {%
if
proxy
.
url
is
defined
%}
"{{ proxy.url }}"
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
...
...
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