Skip to content

Commit 4cb3776

Browse files
author
Morgan Haskel
committed
Merge pull request #57 from cyberious/RenameComplete
Finish refactor to all methods as issue occurs while running against master
2 parents 6923fd9 + 0fee05b commit 4cb3776

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+298
-288
lines changed

examples/database_full.pp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
mssql::database{ 'testdb_full':
1+
sqlserver::config{ 'MSSQLSERVER':
2+
admin_user => 'sa',
3+
admin_pass => 'Pupp3t1@',
4+
}
5+
sqlserver::database{ 'testdb_full':
26
instance => 'MSSQLSERVER',
37
containment => 'PARTIAL',
48
compatibility => 110,

examples/init.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
$sapwd = 'Pupp3t1@'
1313
$instance_name = 'MSSQLSERVER'
1414

15-
mssql_instance{ $instance_name:
15+
sqlserver_instance{ $instance_name:
1616
source => 'E:/',
1717
security_mode => 'SQL',
1818
sa_pwd => $sapwd,
1919
features => ['SQL'],
2020
sql_sysadmin_accounts => ['vagrant'],
2121
}
2222

23-
mssql::config{ 'MSSQLSERVER':
23+
sqlserver::config{ 'MSSQLSERVER':
2424
admin_user => 'sa',
2525
admin_pass => 'Pupp3t1@',
2626
require => Mssql_instance[$instance_name],
2727
}
28-
mssql::login{ 'padmin':
28+
29+
sqlserver::login{ 'padmin':
2930
password => 'PadminP@ssw0rd1',
3031
instance => $instance_name,
31-
require => Mssql::Config[$instance_name],
3232
}

examples/sp_configure.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
sqlserver::config{ 'MSSQLSERVER':
2+
admin_user => 'sa',
3+
admin_pass => 'Pupp3t1@',
4+
require => Mssql_instance[$instance_name],
5+
}
16
#Enable Filestream access on server
27
mssql::sp_configure{ 'filestream access level':
38
value => 1,

files/install_dot_net_35.ps1

Lines changed: 0 additions & 15 deletions
This file was deleted.

files/run_discovery.ps1

Lines changed: 0 additions & 34 deletions
This file was deleted.

files/sqlserver_management.psm1

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/puppet/parser/functions/mssql_is_domain_user.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'lib/puppet_x/sqlserver/server_helper'))
2+
3+
module Puppet::Parser::Functions
4+
newfunction(:sqlserver_is_domain_or_local_user, :type => :rvalue) do |args|
5+
if args.length != 1
6+
raise Puppet::ParseError, ("is_domain_or_local_user(): requires exactly 1 argument, you provided #{args.length}")
7+
end
8+
PuppetX::Sqlserver::ServerHelper.is_domain_or_local_user?(args[0], Facter.value(:hostname))
9+
end
10+
end

lib/puppet/parser/functions/mssql_validate_instance_name.rb renamed to lib/puppet/parser/functions/sqlserver_validate_instance_name.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# @raise [Puppet::ParserError] Instance name can not start or end with underscore (_)
1212
#
1313
module Puppet::Parser::Functions
14-
newfunction(:mssql_validate_instance_name, :docs => <<DOC) do |args|
14+
newfunction(:sqlserver_validate_instance_name, :docs => <<DOC) do |args|
1515
Validate the MS SQL Instance name based on what Microsoft has set within the document located at
1616
http://msdn.microsoft.com/en-us/library/ms143531(v=sql.120).aspx
1717
DOC

lib/puppet/parser/functions/mssql_validate_on_off.rb renamed to lib/puppet/parser/functions/sqlserver_validate_on_off.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Puppet::Parser::Functions
2-
newfunction(:mssql_validate_on_off) do |args|
2+
newfunction(:sqlserver_validate_on_off) do |args|
33
if args.length != 1
44
raise Puppet::ParseError, ("validate_on_off(): requires exactly 1 argument, you provided #{args.length}")
55
end

0 commit comments

Comments
 (0)