X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 85AA5DC00F6 for ; Tue, 9 Apr 2013 20:19:35 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn17so4133360wib.4 for ; Tue, 09 Apr 2013 13:19:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=90cj9BQdiBbXvnWCmU/ibFkhlQ64tfwW1VrL7Y1FuVo=; b=A1WDCfHuR2nB5e5ckjLdZnB6J7EfwLdme82cpmeOg7wpj7g38kNAPH8Ak5W5k3h9bj D922h+i/Y7NYILoc3SQJEbwLnex/h8VZRCflekgFY2YmC60+SdEIjVbNuFIWL+fTFV+o kms8xL7f1T5wO2TK5zj4oXZi6+VBnoqecNlJVJqDwDzGYRlTuSVZedaFuQen9YSK+AjE jo0aQOCAi9Io0NN8hQZG0HGA7A9FIeGLcHMugCqbnGVfwH26ZpDgo5cI+PHeSgj3UMZ8 Lz3VNQjIN+6j7NYf0aZ+Lxu8ymA/s8s4/QG0nQ8eRuKwywPw24xlpf8GvF5t2U3eRIGH stqg== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.180.73.6 with SMTP id h6mr21986766wiv.27.1365538774445; Tue, 09 Apr 2013 13:19:34 -0700 (PDT) Received: by 10.180.88.165 with HTTP; Tue, 9 Apr 2013 13:19:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Apr 2013 15:19:34 -0500 Message-ID: Subject: Re: [alpine-devel] using acf as a rest API From: William Pitcock To: Jaime Melis Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnhTovcbq+MiFe+e9BevNqCKm8Qs9bbj6rjDLENMP4phD/nNnskRs9D7qtVpyL7WOm4GlaW Hello, On Mon, Apr 8, 2013 at 6:36 PM, Jaime Melis wrote: > Hi guys, > > I'm an OpenNebula developer and I had a chat today with Roger and he told me > about this project. As far as I've seen, it looks like a perfect match for > many > things we want to do in our project. > > One of these thing is to provide our users with a virtual router that > autoconfigures itself matching the OpenNebula configuration and does things > like: dns server, dhcp server, etc... > > So, my question here is, I'd like to call some acf funcionalities from > inside a > pogram (namely reconfigure dnsmasq and restart the service), so far I've > seen > the only way to do this programmatically is to log-in with curl for > instance, > get the cookie, and pass it along to the following requests. > > Is there any alternative? should I do this in a different way? would you > consider applying a patch developed by me that enables http basic > authentication > in /etc/acf/acf.conf so I can simply do the equivalent of curl -X POST -u > : https://... without the need of handling cookies? I believe this is one of the problems that ACF2 looks to solve. But I don't personally work on ACF/ACF2, so I can't tell you for certain. Other than that, I think a patch would be fine as a short-term solution. We (myself and my employer) are certainly interested in using ACF for instance orchestration, too, in our internal builds of Alpine. William --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---