File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,10 @@ def initialize(*args)
80
80
81
81
mysql_version = Facter . value ( :mysql_version )
82
82
unless mysql_version . nil?
83
- if Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0 ' ) < 0 and user_part . size > 16
83
+ if Puppet ::Util ::Package . versioncmp ( mysql_version , '5.7.8 ' ) < 0 and user_part . size > 16
84
84
raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 16 characters' )
85
+ elsif Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0' ) < 0 and user_part . size > 32
86
+ raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 32 characters' )
85
87
elsif Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0' ) > 0 and user_part . size > 80
86
88
raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 80 characters' )
87
89
end
Original file line number Diff line number Diff line change 29
29
30
30
mysql_version = Facter . value ( :mysql_version )
31
31
unless mysql_version . nil?
32
- if Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0 ' ) < 0 and user_part . size > 16
32
+ if Puppet ::Util ::Package . versioncmp ( mysql_version , '5.7.8 ' ) < 0 and user_part . size > 16
33
33
raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 16 characters' )
34
+ elsif Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0' ) < 0 and user_part . size > 32
35
+ raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 32 characters' )
34
36
elsif Puppet ::Util ::Package . versioncmp ( mysql_version , '10.0.0' ) > 0 and user_part . size > 80
35
37
raise ( ArgumentError , 'MySQL usernames are limited to a maximum of 80 characters' )
36
38
end
You can’t perform that action at this time.
0 commit comments