-
Notifications
You must be signed in to change notification settings - Fork 21
Debian support added #6
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d8f7544
added debian case
48bedbe
added InclExcl for debian
ecf8065
Added init script for debina
d667379
added debian service
a68608b
added notes for debian
661df12
added Debian system to tsm_spec
88f3b88
added test for InclExcl on Debian
3296ae0
Added tests and comments for debian
62b37fd
added more debian specific comments
8b4fac0
Added a testcase for Debian install
d1f0172
Added a testcase for Debian service
19aeee1
Fixed debian documentation
3b011d7
fixed casing of debian packages
00a88e4
fixed casing of debian packages
2a54d8f
added debian service include
ff30f69
Debian doc updated
7db149f
changed architecture for debian to amd64
85a2f64
trial to get install tests to pass
e2996a7
removed package dependencies in debian install check
28807c0
added context for Debian
f2f2590
fixed Redhat Package name
d9103c0
fixed a bug in when tsm::service_manage is true
caa86c1
added title for debian package
9aa9938
Test if debian handles Captal letters in package names
0161e89
debian does not like Captal letters in package names
3896581
substitude \t for \s
d12eb21
cleanup of unused code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ | |
| /spec/fixtures/modules/sudo | ||
| /spec/fixtures/modules/tsm | ||
| /pkg/ | ||
| .project | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <projectDescription> | ||
| <name>puppet-tsm</name> | ||
| <comment></comment> | ||
| <projects> | ||
| </projects> | ||
| <buildSpec> | ||
| <buildCommand> | ||
| <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| </buildSpec> | ||
| <natures> | ||
| <nature>com.puppetlabs.geppetto.pp.dsl.ui.puppetNature</nature> | ||
| <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
| </natures> | ||
| </projectDescription> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| exclude /var/cache/.../* | ||
| exclude /var/crash/.../* | ||
| exclude /var/lib/slocate/* | ||
| exclude /var/lock/.../* | ||
| exclude /var/log/.../* | ||
| exclude /var/run/.../* | ||
| exclude /var/spool/.../* | ||
| exclude /.../core | ||
| exclude /.../lost+found | ||
| exclude /.../tmp/.../* | ||
| exclude.dir /mnt | ||
| exclude.dir /proc | ||
| exclude.dir /sys | ||
| exclude.fs /dev/shm | ||
| exclude.fs /dev/pts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| #!/bin/bash | ||
| # | ||
| ### BEGIN INIT INFO | ||
| # Provides: dsmcsched | ||
| # Required-Start: $local_fs $remote_fs $syslog networking | ||
| # Required-Stop: | ||
| # Default-Start: 2 3 4 5 | ||
| # Default-Stop: 0 1 6 | ||
| # Short-Description: dsmc scheduler | ||
| # Description: IBM Tivoli Backup Client | ||
| ### END INIT INFO | ||
| # | ||
|
|
||
| # PATH=${PATH}:/usr/adsm:/usr/local/sbin | ||
| # export PATH | ||
| export LANG=is_IS | ||
| DSM_DIR=/opt/tivoli/tsm/client/ba/bin | ||
| DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/dsm.opt | ||
| export DSM_DIR DSM_CONFIG | ||
| linke=`ls -d /opt/tivoli/tsm/client/ba/bin/is_IS` | ||
| if test "$linke" | ||
| then | ||
| sleep 0 | ||
| else | ||
| ln -s /opt/tivoli/tsm/client/ba/bin/en_US /opt/tivoli/tsm/client/ba/bin/is_IS | ||
| fi | ||
| # See how we were called. | ||
| case "$1" in | ||
| start) | ||
| echo -n "Starting dsmc. " | ||
| dsmc sch -RunAsService > /dev/null 2>&1 & | ||
| echo | ||
| ;; | ||
| stop) | ||
| echo -n "Stopping dsmc: " | ||
| pid=`/bin/ps ax | /bin/grep -w dsmc | /bin/grep -v grep | /bin/grep -v dsmcsched | /usr/bin/awk '{print $1}'` | ||
| if test "$pid" | ||
| then | ||
| kill $pid | ||
| echo | ||
| fi | ||
| ;; | ||
| restart) | ||
| $0 stop | ||
| $0 start | ||
| ;; | ||
| status) | ||
| pid=`/bin/ps ax | /bin/grep -w dsmc | /bin/grep -v grep | /bin/grep -v dsmcsched | /usr/bin/awk '{print $1}'` | ||
| if test "$pid" | ||
| then | ||
| echo "dsmc is running with PID: "$pid | ||
| else | ||
| echo "dsmc is not running " | ||
| fi | ||
| ;; | ||
| *) | ||
| echo "Usage: dsmcsched {start|stop|restart|status}" | ||
| exit 1 | ||
| esac | ||
|
|
||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # == Class: tsm::service::debian | ||
| # | ||
| # Manage tsm service on debian | ||
| # | ||
| # === Authors | ||
| # | ||
| # Toni Schmidbauer <toni@stderr.at> | ||
| # David Orn Johannsson <davideaglephotos@gmail.com> | ||
| # | ||
| # === Copyright | ||
| # | ||
| # Copyright 2014 Toni Schmidbauer | ||
| # | ||
| class tsm::service::debian { | ||
|
|
||
| file { $::tsm::service_script: | ||
| ensure => file, | ||
| owner => 'root', | ||
| group => 'root', | ||
| mode => '0755', | ||
| source => $::tsm::service_script_source, | ||
| } | ||
|
|
||
| service { $::tsm::service_name: | ||
| ensure => $::tsm::service_ensure, | ||
| enable => $::tsm::service_enable, | ||
| hasstatus => true, | ||
| hasrestart => true, | ||
| } | ||
|
|
||
| File[$::tsm::service_script] -> Service[$::tsm::service_name] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
one last thing. please do not add editor specific files to the pull request (.project from geppetto). you do not have to update your fork again, i'm going to merge your changes now and remove the file afterwards.
thanks
toni