-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Fixes for ubuntu support #23
Changes from all commits
4b59575
e6a09ac
d394175
f7c1c4d
dfe183b
c0a59ff
aa3956b
01d130b
aa6d78d
a0023d3
c7abf53
dbf5f46
6e71a8f
86408c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
modulesync_config_version: '0.20.1' | ||
modulesync_config_version: '0.21.0' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Managed by https://github.com/voxpupuli/modulesync_configs | ||
# | ||
# Hooks are only enabled if you take action. | ||
# | ||
# To enable the hooks run: | ||
# | ||
# ``` | ||
# bundle exec overcommit --install | ||
# # ensure .overcommit.yml does not harm to you and then | ||
# bundle exec overcommit --sign | ||
# ``` | ||
# | ||
# (it will manage the .git/hooks directory): | ||
# | ||
# Examples howto skip a test for a commit or push: | ||
# | ||
# ``` | ||
# SKIP=RuboCop git commit | ||
# SKIP=PuppetLint git commit | ||
# SKIP=RakeTask git push | ||
# ``` | ||
# | ||
# Don't invoke overcommit at all: | ||
# | ||
# ``` | ||
# OVERCOMMIT_DISABLE=1 git commit | ||
# ``` | ||
# | ||
# Read more about overcommit: https://github.com/brigade/overcommit | ||
# | ||
# To manage this config yourself in your module add | ||
# | ||
# ``` | ||
# .overcommit.yml: | ||
# unmanaged: true | ||
# ``` | ||
# | ||
# to your modules .sync.yml config | ||
--- | ||
PreCommit: | ||
RuboCop: | ||
enabled: true | ||
description: 'Runs rubocop on modified files only' | ||
command: ['bundle', 'exec', 'rubocop'] | ||
PuppetLint: | ||
enabled: true | ||
description: 'Runs puppet-lint on modified files only' | ||
command: ['bundle', 'exec', 'puppet-lint'] | ||
YamlSyntax: | ||
enabled: true | ||
JsonSyntax: | ||
enabled: true | ||
TrailingWhitespace: | ||
enabled: true | ||
|
||
PrePush: | ||
RakeTarget: | ||
enabled: true | ||
description: 'Run rake targets' | ||
targets: | ||
- 'test' | ||
- 'rubocop' | ||
command: [ 'bundle', 'exec', 'rake' ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
notification :off | ||
|
||
guard 'rake', :task => 'test' do | ||
guard 'rake', task: 'test' do | ||
watch(%r{^manifests\/(.+)\.pp$}) | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,11 @@ | |
prompt = 'Admin> ' | ||
|
||
[client] | ||
<% if scope.lookupvar('::proxysql::admin_listen_socket') != '' -%> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we work with undef so this works? <% if scope.lookupvar('::proxysql::admin_listen_socket') -%> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've been working on this last night but I couldn't get it to work with
The default in params is:
When I change the definition to:
Then I can do:
but that will go on and use the default Either I leave it like this or I remove the if and the entire else case and we don't support an empty There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I vote empty string is fine then. |
||
socket = <%= scope.lookupvar('::proxysql::admin_listen_socket') %> | ||
<% else -%> | ||
host = <%= scope.lookupvar('::proxysql::admin_listen_ip') %> | ||
port = <%= scope.lookupvar('::proxysql::admin_listen_port') %> | ||
<% end -%> | ||
user = <%= scope.lookupvar('::proxysql::admin_username') %> | ||
password = <%= scope.lookupvar('::proxysql::admin_password') %> |
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.
is it a good idea to put a socket to /tmp?
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.
/tmp is the upstream ProxySQL default...
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.
Then it's fine by me FWIW.