diff options
Diffstat (limited to 'doc/forum')
11 files changed, 163 insertions, 0 deletions
diff --git a/doc/forum/Docker.hs_will_Break_in_Stretch.mdwn b/doc/forum/Docker.hs_will_Break_in_Stretch.mdwn new file mode 100644 index 00000000..c89c995c --- /dev/null +++ b/doc/forum/Docker.hs_will_Break_in_Stretch.mdwn @@ -0,0 +1,16 @@ +G'day Joey! + +I'm in the process of deploying Docker infrastructure via Propellor on both Jessie and Stretch and I've come to discover that Docker.io did not make it into Stretch: + +* [docker.io REMOVED from testing](https://packages.qa.debian.org/d/docker.io/news/20161012T163916Z.html) +* [docker.io - Linux container runtime](https://tracker.debian.org/pkg/docker.io) +* [Excuse for docker.io](https://qa.debian.org/excuses.php?package=docker.io) + +So the below from Docker.hs will fail beyond Jessie: + + installed :: Property DebianLike + installed = Apt.installed ["docker.io"] + +Before I embarked on my own path to re-implement the above (probably based on [How to install Docker engine on Debian 9 Stretch Linux](https://linuxconfig.org/how-to-install-docker-engine-on-debian-9-stretch-linux)), I thought I'd see what you thought might be the way to resolve this, so that my work could be contributed upstream (if suitable). + +Thanks! diff --git a/doc/forum/Docker.hs_will_Break_in_Stretch/comment_1_8a4f16ae6d04b9d4bedb437ef333562b._comment b/doc/forum/Docker.hs_will_Break_in_Stretch/comment_1_8a4f16ae6d04b9d4bedb437ef333562b._comment new file mode 100644 index 00000000..949f8d0c --- /dev/null +++ b/doc/forum/Docker.hs_will_Break_in_Stretch/comment_1_8a4f16ae6d04b9d4bedb437ef333562b._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2017-02-02T17:28:49Z" + content=""" +Apparently the Debian way to install docker will be from backports. +<https://bugs.debian.org/cgi-bin/bugreport.cgi?att=3;bug=781554;msg=9> + +Note that I'm no longer using any docker Properties myself, so +propellor users who are will need to send patches.. +"""]] diff --git a/doc/forum/Inherited_Variables....mdwn b/doc/forum/Inherited_Variables....mdwn new file mode 100644 index 00000000..1535ec77 --- /dev/null +++ b/doc/forum/Inherited_Variables....mdwn @@ -0,0 +1,26 @@ +I've got a server defined in config.hs as follows: + + myserver :: Host + myserver = host "myserver.mydomain" $ props + & standardSystem (Stable "jessie") X86_64 [ "Welcome to myserver!" ] + +I'm writing a module (to deploy Matrix, FWIW) which has a section like this: + + sources :: Property Debian + sources = File.hasContent "/etc/apt/sources.list.d/matrix.list" + [ "# Deployed by Propellor" + , "" + , "deb http://matrix.org/packages/debian/ jessie main" + ] `onChange` Apt.update + +What I would like to be able to do, for example, is pull "jessie" from the standardSystem line into the sources function. + +The host name is another I'd like to be able to pull in, so that I can abstract as much as possible and wind up with a line that looks not unlike this: + + & Matrix.server + +Instead of + + & Matrix.server hostname jessie + +Am I barking up the wrong tree and should I just embrace the latter? diff --git a/doc/forum/Inherited_Variables.../comment_1_082e5d5b8e25335bc90577abcfef1d21._comment b/doc/forum/Inherited_Variables.../comment_1_082e5d5b8e25335bc90577abcfef1d21._comment new file mode 100644 index 00000000..e4b32398 --- /dev/null +++ b/doc/forum/Inherited_Variables.../comment_1_082e5d5b8e25335bc90577abcfef1d21._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2017-01-26T06:39:35Z" + content=""" +This is where propellor's `Info` system comes in. `Propellor.Info.getOS` +can be run to get the OS info. + +It's also possible to add new properties that add new values with custom +types to `Info`. + +The hostname is not currently stored in `Info`, but it probably should be; +that would be a good simplification. Currently there's a +separate way to get the hostname: `asks hostName` (run in the Propellor monad) +"""]] diff --git a/doc/forum/Inherited_Variables.../comment_2_988319ed6de46eff2eac0d5ef36382f9._comment b/doc/forum/Inherited_Variables.../comment_2_988319ed6de46eff2eac0d5ef36382f9._comment new file mode 100644 index 00000000..676f41ac --- /dev/null +++ b/doc/forum/Inherited_Variables.../comment_2_988319ed6de46eff2eac0d5ef36382f9._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2017-01-26T06:50:39Z" + content=""" +A worked example: + + server :: Property Debian + server = property' "some description" $ \w -> do + os <- getOS + hostname <- asks hostName + ensureProperty w $ + File.hasContent "/etc/apt/sources.list.d/matrix.list" + (genSourcesList os hostname) +"""]] diff --git a/doc/forum/Inherited_Variables.../comment_3_acf78fa9f732f070bf73c2ab601464ee._comment b/doc/forum/Inherited_Variables.../comment_3_acf78fa9f732f070bf73c2ab601464ee._comment new file mode 100644 index 00000000..fcdf923b --- /dev/null +++ b/doc/forum/Inherited_Variables.../comment_3_acf78fa9f732f070bf73c2ab601464ee._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="craige" + avatar="http://cdn.libravatar.org/avatar/64ac5816ea3a51347d1f699022d1fdc1" + subject="Thanks!" + date="2017-01-27T21:54:45Z" + content=""" +Thanks Joey. I think that's exactly what I need. Very helpful :-) +"""]] diff --git a/doc/forum/Inherited_Variables.../comment_4_5bf7b1f69b48b4d9c516d424e4438208._comment b/doc/forum/Inherited_Variables.../comment_4_5bf7b1f69b48b4d9c516d424e4438208._comment new file mode 100644 index 00000000..3b691b2a --- /dev/null +++ b/doc/forum/Inherited_Variables.../comment_4_5bf7b1f69b48b4d9c516d424e4438208._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="craige@a46118dff5bc0fad85259759970d8b4b9fc377d7" + nickname="craige" + avatar="http://cdn.libravatar.org/avatar/6d2207226de755da46aa2fdff9af70b2" + subject="comment 4" + date="2017-02-03T00:04:05Z" + content=""" +Ugh, sorry to ask again but I'm specifically stuck trying to extract the Debian suite only from this. Is this stored as a specific value I can draw on? I've been wading through the source and added in a swag of trial and error with no luck. + +I can see the suite listed in the output + + Just (System (Debian Linux (Stable \"jessie\")) + +but I was wondering if there was a method to pull out just the suite code name (ie: \"jessie\") that did not involve a regex looking for it amongst that output. + +The goal is to query Info so that a suite name can be added to a sources list. + +If I have to regex, that's OK, I just didn't want to go down that path if there was a smarted way. + +Thanks Joey :-) +"""]] diff --git a/doc/forum/Inherited_Variables.../comment_5_6fbd29f568ec8b97be47874e2aac57a3._comment b/doc/forum/Inherited_Variables.../comment_5_6fbd29f568ec8b97be47874e2aac57a3._comment new file mode 100644 index 00000000..16819bd6 --- /dev/null +++ b/doc/forum/Inherited_Variables.../comment_5_6fbd29f568ec8b97be47874e2aac57a3._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 5""" + date="2017-02-03T19:32:58Z" + content=""" +What you're looking for is not a regexp, but Haskell's [pattern +matching](https://www.haskell.org/tutorial/patterns.html). + +For example: + + myproperty :: Property Debian + myproperty = withOS "some desc here" $ \w o -> case o of + -- Pattern match on the OS, to get the Debian stable release + (Just (System (Debian _kernel (Stable release)) _arch)) -> + ensureProperty w $ Apt.setSourcesListD (sourcesLines release) "mysources" + _ -> unsupportedOS + + sourcesLines :: Release -> [Line] + sourcesLines release = undefined +"""]] diff --git a/doc/forum/Modules_with_Multiple_cmdProperty_causing_build_failures/comment_2_5afe0f200d7139499ef4b01ea6445206._comment b/doc/forum/Modules_with_Multiple_cmdProperty_causing_build_failures/comment_2_5afe0f200d7139499ef4b01ea6445206._comment new file mode 100644 index 00000000..00f77116 --- /dev/null +++ b/doc/forum/Modules_with_Multiple_cmdProperty_causing_build_failures/comment_2_5afe0f200d7139499ef4b01ea6445206._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="craige@a46118dff5bc0fad85259759970d8b4b9fc377d7" + nickname="craige" + avatar="http://cdn.libravatar.org/avatar/6d2207226de755da46aa2fdff9af70b2" + subject="Fixed!" + date="2017-01-26T05:54:22Z" + content=""" +The original suggestions did fix my problems. + +Apologies for the late response. +"""]] diff --git a/doc/forum/Supported_OS/comment_3_f2924708a819b962ba7ed690019601ed._comment b/doc/forum/Supported_OS/comment_3_f2924708a819b962ba7ed690019601ed._comment new file mode 100644 index 00000000..c03f6cd9 --- /dev/null +++ b/doc/forum/Supported_OS/comment_3_f2924708a819b962ba7ed690019601ed._comment @@ -0,0 +1,7 @@ +[[!comment format=mdwn + username="joey" + subject="""Arch too!""" + date="2017-02-04T21:30:26Z" + content=""" +Propellor just got support for Arch Linux! +"""]] diff --git a/doc/forum/propellor_and_gpg2/comment_1_4b732110f59f78f73fdfb745bdd9c0dd._comment b/doc/forum/propellor_and_gpg2/comment_1_4b732110f59f78f73fdfb745bdd9c0dd._comment new file mode 100644 index 00000000..66c4cffa --- /dev/null +++ b/doc/forum/propellor_and_gpg2/comment_1_4b732110f59f78f73fdfb745bdd9c0dd._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="anselmi@0a9758305bef5e058dd0263fa20a27b334b482c7" + nickname="anselmi" + avatar="http://cdn.libravatar.org/avatar/65b723eb35eb4e3b05fffafd3e13e0fd" + subject="Cache gpg passphrase." + date="2016-12-22T17:23:58Z" + content=""" +The bottom line on this is that gpg2 (via the agent and pinentry) doesn't prompt correctly when run from git. It does when run directly. + +One fix is to set GPG_TTY before running propellor: `export GPG_TTY=$(tty)` or some such. + +Anything else that caches the pass phrase in the agent works too since that removes the need to prompt. +"""]] |
