IaC Aptly on darwini
Closed, ResolvedPublic

Description

currently set up manually, Aptly on Darwini should be set up by code for repeatability and verification

@ kde:sysadmin/neon-server-deploy

jriddell created this task.Nov 24 2016, 6:09 PM

Probably it should just use the nightly packages, I can't remember if there's a reason why not
deb http://repo.aptly.info/ nightly main

sitter added a subscriber: sitter.Feb 27 2017, 12:56 PM

Because it's not system-wide and there is no reason for it to be.
systemd rigging would need iac eitherway.

oh, and the config, we have a special config I think

jriddell moved this task from Ready To Do to Review on the Neon board.Feb 27 2017, 2:57 PM
sitter added a comment.EditedFeb 27 2017, 3:05 PM

move to kde.

I am also not entirely sure why we need ansible here. but ok

needs a readme. doesn't work for me

to a proper repository. scratch is going away.

fails to provision from scratch

$ ./deploy 
192.168.1.19 | FAILED! => {
    "changed": false, 
    "failed": true, 
    "msg": "file (.config/systemd/user/aptly.service) is absent, cannot continue", 
    "path": ".config/systemd/user/aptly.service", 
    "state": "absent"
}
192.168.1.19 | FAILED! => {
    "changed": false, 
    "failed": true, 
    "msg": "file (bin/) is absent, cannot continue", 
    "path": "bin/", 
    "state": "absent"
}
192.168.1.19 | SUCCESS | rc=0 >>


192.168.1.19 | FAILED | rc=5 >>
Failed to start aptly.service: Unit aptly.service not found.

192.168.1.19 | FAILED | rc=1 >>
Can't connect to localhost:9090

Connection refused at /usr/share/perl5/LWP/Protocol/http.pm line 47.

(also ignores return values?)

fixed return values
I don't know if scratch is going away, last I heard Ben was still working out how to integrate it/implement it in phabricator
makes directories now
you got rid of getting latest nightly aptly?

Yes. I take offense with you installing aptly on my system, without adding the gpg key, without removing it again, just so you get out of reading the aptly readme and doing a proper build.

still needs a proper repo under sysadmin/

sitter moved this task from Review to Doing on the Neon board.Mar 2 2017, 10:13 AM
sitter added a comment.EditedMar 6 2017, 1:40 PM

Still not passing with new files. Also still ignores failures (return values)

darwini.kde.org | FAILED! => {
    "changed": false,                                                                                                                
    "failed": true,                                                                                                                  
    "msg": "file (.config/systemd/user/aptly.socket) is absent, cannot continue",                                                    
    "path": ".config/systemd/user/aptly.socket",                                                                                     
    "state": "absent"                                                                                                                
}                                                                                                                                    
darwini.kde.org | FAILED! => {
    "changed": false,                                                                                                                
    "failed": true,                                                                                                                  
    "msg": "file (.config/systemd/user/proxy-to-aptly.service) is absent, cannot continue",                                          
    "path": ".config/systemd/user/proxy-to-aptly.service",                                                                           
    "state": "absent"                                                                                                                
}                                                                                                                                    
darwini.kde.org | FAILED! => {
    "changed": false,                                                                                                                
    "failed": true,                                                                                                                  
    "msg": "file (.config/systemd/user/proxy-to-aptly.socket) is absent, cannot continue",                                           
    "path": ".config/systemd/user/proxy-to-aptly.socket",                                                                            
    "state": "absent"                                                                                                                
}

fixed for aptly.socket
I've no idea what proxy-to-aptly.service is

sitter updated the task description. (Show Details)Mar 6 2017, 1:59 PM
sitter added a comment.Mar 7 2017, 6:39 AM
  • needs readme documenting use
  • aptly config is not provisioned

Added a README.

What aptly config?

~/.aptly.conf

jriddell moved this task from Doing to Review on the Neon board.Aug 17 2017, 11:22 AM
bshah closed this task as Resolved.Jul 17 2018, 4:33 AM
bshah claimed this task.
bshah added a subscriber: bshah.

This is done I believe.