Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

various initial adds.

  • Loading branch information...
commit 536cade7ab84e3a29f771974099bef11101b0357 1 parent 870aeb5
@uberj authored
View
14 glaspot/Notes
@@ -0,0 +1,14 @@
+For Vlan setup:
+http://www.seiichiro0185.org/blog:creating_a_seperate_guest_network_with_tomato
+
+Libev:
+http://dist.schmorp.de/libev/Attic/libev-4.04.tar.gz
+
+ssh: 2222
+uberj.dyndns-blog.com
+
+APD:
+http://pecl.php.net/get/apd
+(Had to manually patch)
+configure help: http://lzone.de/node/4
+
View
4 glaspot/README.mkd
@@ -0,0 +1,4 @@
+Learn puppet the hard way.
+==========================
+
+This may or may not have turned into an attempt to build glaspot using puppet.
View
24 glaspot/manifests/evnet.pp
@@ -0,0 +1,24 @@
+#
+# Let's get this working before we make it pretty.
+#
+
+class evnet () {
+ file { '/home/glaspot/evnet/':
+ ensure => directory,
+ mode => 0640,
+ owner => glaspot,
+ require => User['glaspot'],
+ }
+
+ git::clone { "evnet":
+ source => "https://github.com/rep/evnet.git",
+ localtree => "/home/glaspot/",
+ }
+
+ exec { 'evnet install':
+ path => ['/usr/bin'],
+ cwd => "/home/glaspot/evnet/",
+ command => "python setup.py build && python setup.py install",
+ require => Git::Clone['evnet'],
+ }
+}
View
35 glaspot/manifests/init.pp
@@ -0,0 +1,35 @@
+class glaspot{
+ package { 'subversion':
+ ensure => installed,
+ }
+
+ package { 'python-dev':
+ ensure => installed,
+ }
+
+ user { 'glaspot':
+ ensure => present,
+ home => '/home/glaspot/',
+ managehome => true,
+ }
+
+ file { '/home/glaspot/glaspot/':
+ ensure => directory,
+ mode => 0640,
+ owner => glaspot,
+ require => User['glaspot'],
+ }
+
+
+ subversion::checkout { "glaspot":
+ repopath => "/glaspot",
+ workingdir => "/home/glaspot/glaspot/",
+ host => "glastopf.org",
+ method => "svn",
+ svnuser => "glaspot",
+ port => "9090",
+ require => File['/home/glaspot/glaspot/'],
+ }
+}
+
+class {'glaspot': }
View
1  php_apd/README
@@ -0,0 +1 @@
+Puppet module to install php apd. A php debugger library.
View
3  subversion/Modulefile
@@ -0,0 +1,3 @@
+name 'crayfish-svn'
+version '1.0.0'
+
View
4 subversion/README
@@ -0,0 +1,4 @@
+ubversion
+
+Released 20110608 - Craig Dunn - GPLv2
+
View
BIN  subversion/pkg/crayfish-subversion-1.0.0.tar.gz
Binary file not shown
View
3  subversion/pkg/crayfish-subversion-1.0.0/Modulefile
@@ -0,0 +1,3 @@
+name 'crayfish-subversion'
+version '1.0.0'
+
View
4 subversion/pkg/crayfish-subversion-1.0.0/README
@@ -0,0 +1,4 @@
+ubversion
+
+Released 20110608 - Craig Dunn - GPLv2
+
View
115 subversion/pkg/crayfish-subversion-1.0.0/manifests/init.pp
@@ -0,0 +1,115 @@
+# Class: subversion
+#
+# Manage subversion checkouts
+class subversion {
+
+ package { "subversion":
+ ensure => latest,
+ }
+
+ $svnflags = "--non-interactive"
+
+# Definition: svn::checkout
+#
+# Check out a subversion repository to a working directory
+#
+# Parameters:
+# $repopath - Path to the repository
+# $workingdir - Local working directory to checkout to
+# $ensure (optional) - Set to updated to ensure latest svn update
+# $host (optional) - Subversion server hostname
+# $method (optional) - Protocol to use (http,https,svn..etc)
+# $svnuser (optional) - Username to connect with
+# $password (optional) - Password to connect with
+# $revision (optional) - Revision to check out
+# $trustcert(optional) - Use --trust-server-cert
+#
+#
+# Sample usage
+# subversion::checkout { "application/trunk":
+# repopath => "/app/trunk",
+# workingdir => "/var/src/app",
+# host => "subversion.local",
+# method => "http",
+# svnuser => "application",
+# password => "kjhsdfkj",
+# require => File["/var/src/app"],
+# }
+#
+ define checkout (
+ $repopath,
+ $workingdir,
+ $ensure = "exists",
+ $host = false,
+ $method = false,
+ $svnuser = false,
+ $revision = "HEAD",
+ $password = false,
+ $trustcert = false
+ ) {
+
+
+
+ $urlmethod = $method ? {
+ false => "",
+ default => "$method://"
+ }
+
+ $optuser = $svnuser ? {
+ false => "",
+ default => "--username $svnuser",
+ }
+
+ $urlhost = $host ? {
+ false => "",
+ default => "$host"
+ }
+
+ $optpassword = $password ? {
+ false => "",
+ default => "--password $password"
+ }
+
+ $opttrustcert = $trustcert ? {
+ false => "",
+ default => "--trust-server-cert"
+ }
+
+
+
+
+ $svnurl = "${urlmethod}${urlhost}${repopath}"
+ Exec { path => "/bin:/usr/bin:/usr/local/bin" }
+
+
+ exec { "$svnurl:$workingdir:checkout":
+ cwd => $workingdir,
+ command => "svn checkout $svnflags $optuser $optpassword $opttrustcert -r$revision $svnurl $workingdir",
+ creates => "$workingdir/.svn",
+ require => Package["subversion"],
+ }
+
+
+ if ( $ensure == "updated" ) {
+ exec { "$svnurl:$workingdir:update":
+ cwd => "$workingdir",
+ command => "svn update $svnglags $optuser $optpassword $opttrustcert -r$revision",
+ require => Package["subversion"],
+ }
+ }
+
+
+ }
+
+
+
+}
+
+
+
+
+
+
+
+
+
View
21 subversion/pkg/crayfish-subversion-1.0.0/metadata.json
@@ -0,0 +1,21 @@
+{
+ "description": "UNKNOWN",
+ "types": [
+
+ ],
+ "checksums": {
+ "README": "4cbb2d56189976bfef1356c2e6633dc8",
+ "Modulefile": "97e11c570acad27e6547991d8c003512",
+ "manifests/init.pp": "74f2983d7b859f0807477bf12a802d4c"
+ },
+ "summary": "UNKNOWN",
+ "source": "UNKNOWN",
+ "author": "crayfish",
+ "version": "1.0.0",
+ "project_page": "UNKNOWN",
+ "license": "UNKNOWN",
+ "dependencies": [
+
+ ],
+ "name": "crayfish-subversion"
+}
Please sign in to comment.
Something went wrong with that request. Please try again.