Module: Rules

Defined in:
lib/puppet-lint-infrasecure/rules.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.credentialsObject

Returns the value of attribute credentials.



4
5
6
# File 'lib/puppet-lint-infrasecure/rules.rb', line 4

def credentials
  @credentials
end

.cyrillicObject

Returns the value of attribute cyrillic.



5
6
7
# File 'lib/puppet-lint-infrasecure/rules.rb', line 5

def cyrillic
  @cyrillic
end

.dependenciesObject

Returns the value of attribute dependencies.



13
14
15
# File 'lib/puppet-lint-infrasecure/rules.rb', line 13

def dependencies
  @dependencies
end

.httpObject

Returns the value of attribute http.



10
11
12
# File 'lib/puppet-lint-infrasecure/rules.rb', line 10

def http
  @http
end

.ip_addr_bindObject

Returns the value of attribute ip_addr_bind.



8
9
10
# File 'lib/puppet-lint-infrasecure/rules.rb', line 8

def ip_addr_bind
  @ip_addr_bind
end

.nonsecretObject

Returns the value of attribute nonsecret.



7
8
9
# File 'lib/puppet-lint-infrasecure/rules.rb', line 7

def nonsecret
  @nonsecret
end

.passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/puppet-lint-infrasecure/rules.rb', line 3

def password
  @password
end

.poor_cryptoObject

Returns the value of attribute poor_crypto.



11
12
13
# File 'lib/puppet-lint-infrasecure/rules.rb', line 11

def poor_crypto
  @poor_crypto
end

.secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/puppet-lint-infrasecure/rules.rb', line 6

def secret
  @secret
end

.susp_commentObject

Returns the value of attribute susp_comment.



9
10
11
# File 'lib/puppet-lint-infrasecure/rules.rb', line 9

def susp_comment
  @susp_comment
end

.whitelistObject

Returns the value of attribute whitelist.



12
13
14
# File 'lib/puppet-lint-infrasecure/rules.rb', line 12

def whitelist
  @whitelist
end

Class Method Details

.keyObject



24
25
26
# File 'lib/puppet-lint-infrasecure/rules.rb', line 24

def self.key
    @key ||= /(cert|key|rsa|secret|ssl)+/
end

.placeholderObject



45
46
47
# File 'lib/puppet-lint-infrasecure/rules.rb', line 45

def self.placeholder
    @placeholder ||= /\${.*}|(\$)?.*::.*(::)?/
end

.privkeyObject



28
29
30
# File 'lib/puppet-lint-infrasecure/rules.rb', line 28

def self.privkey
    @key ||= /(pvt|priv)+.*(cert|key|rsa|secret|ssl)+/
end

.usernameObject



33
34
35
# File 'lib/puppet-lint-infrasecure/rules.rb', line 33

def self.username
    @username ||= /user|usr/
end